in main () wrote the following
int const a=10; int *p=(int*)(&a); *p=20; cout<< a << endl; cout<< *p << endl; return 0; In the debugger, I observe a change in the value of the variable "a" from 10 to 20. But 10 and 20 are displayed on the screen. That is, although I clearly changed the constant variable (I know that you can’t do this, I just tested it) the previous value was displayed. Run under Windows and under ubuntu on a virtual machine. Why is it that 10 20 is displayed instead of 20 20?