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

const, volatile, and mutable are all storage qualifiers (cv-qualifiers) in C++. const indicates the value cannot be modified, volatile tells the compiler the value may change in ways not visible to the compiler (prevents optimization), and mutable allows a member variable to be modified even in a const member function.