Multiple choice technology programming languages

What will be the output of the following program : void main() { int a=5,b=6; Printf("%d %d %d",a,b,--a*++b); }

  1. Compile-Time Error

  2. 5 6 30

  3. 4 7 28

  4. None of the above

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

The expression --a*++b has both operators executing before multiplication: --a decrements a from 5 to 4, ++b increments b from 6 to 7, then 4*7 = 28. printf evaluates arguments left-to-right, so a and b are printed after the increments: 4 and 7.