C output type question

Q.  Trace the output.

int main()
{
char *str="careerride";
printf("%d",printf("%s",str));
return 0;
}

- Published on 17 Jun 15

a. 10careerride
b. careerride
c. careerride10
d. Compile time error.

ANSWER: careerride10

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)