What is the following C code doing?
int i;
int* p = &i;
0[p] = 42;
I would have though that this would not event compile. But it even executes without a segmentation fault. So I wonder what strange use of the [] operator I have missed.
What is the following C code doing?
int i;
int* p = &i;
0[p] = 42;
I would have though that this would not event compile. But it even executes without a segmentation fault. So I wonder what strange use of the [] operator I have missed.