The following code seems to execute fine but how is it valid and whats happening here?
int i;
printf("%d",i["11"]);
The following code seems to execute fine but how is it valid and whats happening here?
int i;
printf("%d",i["11"]);
when you do i["11"]
what you do is say to the compiler to take the value of i
and add to it the value of "11"
and take the value on the address that is the sum of them