Multiple choice

External variable is automatically initialized to ___.

  1. 0

  2. 1

  3. -1

  4. none of the above

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

In C, external (global) variables are automatically initialized to 0 if not explicitly initialized. This applies to both external variables and static variables. Local variables, however, are not automatically initialized and contain garbage values.