I don’t understand the result of the following C code.
main()
{
char s[] = “AAA”;
advanceString(s);
}
void advanceString(p[3])
{
int val = atoi(p);
printf(“The atoi val is %d
“,val);
} Th
I don’t understand the result of the following C code.
main()
{
char s[] = “AAA”;
advanceString(s);
}
void advanceString(p[3])
{
int val = atoi(p);
printf(“The atoi val is %d
“,val);
} Th
I read that atoi() has been deprecated, it is equivalent to:
(int)strtol(token_start, (char **)NULL, 10); Does this mean I should use the above instead of atoi(chr) or does it just say that t