Multiple choice technology web technology

printf("%d",printf("What this will print"));

  1. Compile error

  2. printf("What this will print")

  3. What this will print

  4. 20

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The inner printf prints the string and returns the number of characters printed (20). The outer printf then prints this return value as an integer. So the full output is 'What this will print20' on the same line, and the outer printf displays 20.