Multiple choice technology programming languages

What will be the output of the following program : void main() { int a=5,b=6,c=7; printf("%d %d %d"); }

  1. Compile-Time Error

  2. 5 6 7

  3. 7 6 5

  4. Unpredictable

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

With three format specifiers and zero arguments passed to printf, the function attempts to read missing values from the stack, resulting in unpredictable output.