Multiple choice softskills creativity

what will be the output?? int main(int c) c=1; while(1); c++; printf("%d",++c); return 0; }

  1. Nothing

  2. 3

  3. 1

  4. 2

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

The while(1); statement is an infinite loop - the semicolon makes it an empty statement that repeats forever. The lines c++ and printf are unreachable code that never executes. The program hangs in the infinite loop, producing no output. This is a classic unreachable code scenario.