Multiple choice

Which of these is false regarding static storage classes?

  1. Their scope may be local.

  2. Lifetime of a static variable is equal to the lifetime of the program.

  3. They retain their value even during multiple calls to a function.

  4. Static variables are stored in RAM.

  5. The default value of static variables is zero.

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

The default value of static variables is garbage.