View difference between Paste ID: pnveQzcL and g2Er4asA
SHOW: | | - or go back to the newest paste.
1
const int x = 1;
2-
int *px = (int *) &x;
2+
3
int main(int) {
4-
*px = 0;
4+
    int *px = (int *) &x;
5
6-
printf("x is %d", x);
6+
    *px = 0;
7
8
    printf("x is %d", x);
9
}