please help.
i need to convert a string (with a numeric value) to an integer. how do i do that in c?
thanks a lot.
Printable View
please help.
i need to convert a string (with a numeric value) to an integer. how do i do that in c?
thanks a lot.
Code:int i;
char * string = "1024";
i = atoi(string);
printf("%d", i);