What makes this construction?
int a[10];
int x;
x = 2[a];
I do not understand what makes 2 [a]. It is another senility of C language?
What makes this construction?
int a[10];
int x;
x = 2[a];
I do not understand what makes 2 [a]. It is another senility of C language?
It is
2[a] = *(2 + a) = *(a + 2) = a[2]
Note: +
operator holds commutative property