What will be the output of the following C code?
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);A. Hello 0.000000
B. "Hello" 0.000000
C. Hello 0
D. "Hello" 0
Answer: Option C

Join The Discussion