Vidyalelo
C Programming · Q196

Standard Library Functions

Programming · C Programming · question 196

Q196

What will be the output of the following C code? char str[] ; strcpy(str, "Hello"); res = atoi(str); printf(" %s %d ", str, res);

A.
Hello 0.000000
B.
"Hello" 0.000000
C.
Hello 0
Answer
D.
"Hello" 0

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board