0
How to convert a Number string to integer Point in C??
A string suppose "1234". That is convert a integer number 1234. How to do this by C programming??
2 Answers
+ 2
You can also use atoi() to convert c string to integer type of stoi() doesn't work.
+ 1
char number[4] = â1234â; //String â1234â
int num = stoi(number); // stoi() function to convert string to integer
int *numptr = # // pointer to the integer