What is 0[p] doing?

Viewed 1066

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.

3 Answers
Related