int main() { int *p ; const int a = 20; p=(int *)&a; *p = *p +10; cout<<"p is"<<*p<<"\na is"<<a; }
p is 30 a is 20
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)