Multiple choice general knowledge

void main() { ; }

  1. a. Will Compile but no Output

  2. b. Compilation Error - Undeclared Identifier

  3. c. Compilation Error - Syntax

  4. d. I dont know

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

An empty statement (just a semicolon) is valid in C. The function main contains only a semicolon, which does nothing. This compiles successfully and produces no output. Option A is correct.