Which is the correct output? int i = 4; printf ("%d%d", ++i, i++); printf ("%d ", i++);

Which is the correct output?

int i = 4;
printf ("%d%d", ++i, i++);
printf ("%d ", i++);
  1. a) 5 4 6
  2. b) 5 7 8
  3. c) 6 4 6
  4. d) 4 5 7

From the Janata Bank Assistant Network Engineer 2020 – Written exam, question 1 of 68.

More from this paper