what should be the result of the following lines?
const int ci=10;
int * ip=(int *)&ci;
(*ip)=90;
we had two rules, constants can not be changed and changing a part of memory directly using * operator must change the contents of that part of memory. but when I try to print these variables I face something like this:
cout<<ci<<' '<<(*ip)<<endl;
// output: 10 90
how can we explain this?