Here is the code:
int a[2][4] = {
{3, 6, 9, 12},
{15, 18, 21, 24}
};
std::cout << 2[1[a]] <<std::endl;
the output is 21
, which means 2[1[a]]
is equal to the expression a[1][2]
.
I also try other expressions, and the result is same. num2[num1[a]]
is equal to a[num1][num2]
.
My question is, which book or reference says it works?