Consider the below code snippet:
int main()
{
const int i=3;
int *ptr;
ptr=const_cast(&i);
*ptr=5;
cout<<\"i= \"<&
i could be stored in a protected area of memory for ptr to point to. Of course anything can be the case, which is why it's undefined - which basically means don't depend on any particular behaviour occurring if you do try to trigger undefined behaviour.
For all you know it could cause your computer to go into cardiac arrest or start shooting out laser beams, but you never know because it's ... (w a i t _ f o r _ i t) ... undefined ;).