Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++

Image Description

Question: 1 / 565

How can you make a pointer itself constant?

Placing const to the right of *

To make a pointer itself constant, you need to place the keyword "const" to the right of the asterisk (*). Placing it to the left of the asterisk will make the value being pointed to constant, rather than the pointer itself. Defining the pointer in header files or using enum will not make the pointer itself constant.

Get further explanation with Examzify DeepDiveBeta

Placing const to the left of *

Defining pointer in header files

Using enum

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy