?
What will be the output of the following C code?
What will be the output of the following C code?
char str[20];
strcpy(str, "123456");
res = atoi(str);
printf("%s %d\n", str, res);
char str[20];
strcpy(str, "123456");
res = atoi(str);
printf("%s %d\n", str, res);
Join the Discussion
Login to post a comment or share your explanation.
Login