Multiple choice technology programming languages

void main() { ; }

  1. Compilation Error - Undeclared Identifier

  2. Compilation Error - Syntax

  3. I dont know

  4. Will Compile but no Output

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

An empty function with just a semicolon is valid in C (as a null statement). While void main() is non-standard (standard C requires int main), many compilers accept it. The code compiles and runs, producing no output because there are no printf statements.