Multiple choice

Which of the following storage classes of C has/have global scope for variable declared?

  1. Automatic storage class

  2. Register storage class

  3. Static storage class

  4. External storage class

  5. All of the above

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

Only those variables which are declared in external storage class have global scope as they can be accessed in all the parts of the code.