Beginner C++
Q37 / 100

What is the purpose of the const qualifier on a variable?

Correct! Well done.

Incorrect.

The correct answer is B) The variable's value cannot be changed after initialization

B

Correct Answer

The variable's value cannot be changed after initialization

Explanation

const int MAX = 10; prevents MAX from being modified. The compiler enforces this at compile time.

Progress
37/100