Multiple choice

How many types of storage classes are there in C++?

  1. 4

  2. 5

  3. 3

  4. None of the above

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

C++ has exactly four storage classes: auto (default for local variables), register (suggests CPU register storage), static (preserves value between function calls), and extern (for global/external linkage).