Ace Your C++ Skills 2026 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

What can const variables not be used for?

To create constant pointers.

As rvalues in expressions.

To take their address in operations.

To modify once initialized.

Const variables cannot be used for modification once they have been initialized. This means that options A, B, and C are incorrect because they all involve actions that alter or modify the original const variable. Creating constant pointers, using the variable as an rvalue in expressions, and using the variable's address in operations all involve changing the value of the const variable, which is not possible.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy