私はこれが本当であることを知っていた:
x[4] == 4[x]
多次元配列に相当するものは何ですか?次のことは本当ですか?
x[4][3] == 3[x[4]] == 3[4[x]]
ベストアンサー
x[y]
is defined as *(x + (y))
x[y][z]
would become *(*(x + (y)) +
z)
x[y[z]]
would become *(x + (*(y +
(z))))
x[4][3]
would become *(*(x + (4)) + 3)
would become *(*(x + 4) + 3)
3[x[4]]
would become *(3 + (*(x +
would become
(4))))*(*(x + 4) + 3)
3[4[x]]
would become *(3 + (*(4 +
would become
(x))))*(*(x + 4) + 3)
つまり、それらはすべて同等です。