Intermediate
C++
Q65 / 100
What is the difference between const int* and int* const?
Correct! Well done.
Incorrect.
The correct answer is B) const int* is a pointer to const int (value can't change); int* const is a const pointer to int (address can't change)
B
Correct Answer
const int* is a pointer to const int (value can't change); int* const is a const pointer to int (address can't change)
Explanation
Read right-to-left: int* const p — p is a const pointer to int. const int* p — p is a pointer to const int. Both: const int* const p.
Progress
65/100