printf ("%d", printf("tim"));

  • 0 replies
  • 1023 views
*

Offline mechanic

  • *****
  • 3093
    • View Profile
    • Engineering Forum
printf ("%d", printf("tim"));
« on: February 25, 2017, 09:11:03 AM »
Question: printf ("%d", printf("tim"));

Options are:


A. Results in a syntax error
B. outputs tim3
C. outputs garbage
D. prints tim and terminates abruptly

Correct answer is:

B. outputs tim3