#include #include using namespace std; int main() { int i {10}; int j {20}; const int *const p {&i}; //Because of the const after the asterisk, we can't do this. //p always has to point at the same variable, i. //p = &j; //Not allowed. //Because of the const at start of the declararion, we can't do this. //We can't use p to change the value of the variable to which p points. //++*p; //Try to use p to increment the value of i. Not allowed. //But at least we can still do this: cout << "The value of i is " << *p << ".\n"; return EXIT_SUCCESS; }