Multiple choice technology programming languages

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

  1. Compile-Time Error

  2. 5

  3. Unpredictable

  4. No output

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

The printf function expects a matching argument for its format specifier, but none is provided. This leads to undefined behavior, meaning the output is unpredictable.