Multiple choice technology programming languages

Which of the following are storage qualifiers in C++ ?

  1. const

  2. volatile

  3. mutable

  4. All the Above

  5. None of the Above

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

All three keywords qualify how variables are stored, qualified, or accessed in C++. The const keyword prevents modification, volatile prevents compiler optimizations for variables changed externally, and mutable allows members to be modified within const member functions.