C program to convert char into integer
C program to convert text into integer
Program:-
Output:-
Enter your data:14789
String in Integer
1
4
7
8
9
Enter your data:475218
String in Integer
4
7
5
2
1
8
Program:-
C program to convert 1st 3 string into integer
Output:-
Enter your data:1478
1st 3 strung in Integer 147
Enter your data:59247893
1st 3 strung in Integer 592
Great Site for Programming!!!!!!!!!
ReplyDeleteatoi function is defined inside stdlib.h header file. Function atoi converts the string to an integer. If no valid conversion exist for that string then it returns zero.
ReplyDelete