You should not do this, and the compiler gives you this warning for some reason. However, C / C ++ will allow you to do anything you want. You must write clean code.
You can reflect the constant of this value using:
int const * d = &a;
Then, changing what d indicates, gives warnings and errors.
source share