MCQs>IT & Programming>C++>How do you declare a pointer where the memory location being pointed to cannot be altered, but the value being pointed to can?
C++ MCQs
How do you declare a pointer where the memory location being pointed to cannot be altered, but the value being pointed to can?
Answer
Correct Answer: int * const x = &y;
Explanation:
Note: This Question is unanswered, help us to find answer for this one