Multiple choice

The following program main() {*int i=100; int M(); printf(“%d“,(*M)(i));} int M(x)int x{printf(“%d”,++x);}

  1. prints 100

  2. prints 101

  3. prints an error message

  4. prints 1013

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

The program calls M(100), which prints 101 (100+1). The return value is then printed. The code is syntactically messy, but the logic leads to 1013.