#include <iostream>
int main() {
int a = 123;
const int* const p = &a;
std::cout << *p << ' ' << a << '\n';
//*p = 99; // error: assignment of read-only location ‘*(const int*)p’
int b = 905;
// p = &b; // error: assignment of read-only variable ‘p’
}
/*
run:
123 123
*/