const int a = 100;
const int *p = &a;
int *q = (int*)p;

*q = 10;

cout<<*p<<*q;

answer : 10 10

But i am not able to understand why this is happening?

Reply via email to