Multiple choice technology programming languages

void main(){ print(“%d”,printf(“What this prints”)) };

  1. Compile error

  2. What this prints

  3. 11

  4. 15

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

The inner printf('What this prints') prints the string and returns the character count (15). The outer printf with %d format specifier prints this return value, giving output '15'.