/*
例外:无解的强制修改
*/
void demo(){
const int a = 10;
printf("%d\n",a);
int *p = &a;
*p = 100;
printf("%p\n%p\n",&a,p); //地址一样
printf("%d,%d\n",a,*p); //值不一样
}
/*
例外:无解的强制修改
*/
void demo(){
const int a = 10;
printf("%d\n",a);
int *p = &a;
*p = 100;
printf("%p\n%p\n",&a,p); //地址一样
printf("%d,%d\n",a,*p); //值不一样
}