Multiple choice

What will be the output of the following C code? int T; static T= 8; extern T; void main() { printf(%d,T); }

  1. 8

  2. 0

  3. Compile error

  4. Runtime error

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

More than one global variable declaration is allowed. But you can initialise only one variable. Hence, output will be 8.