問題描述
Baiklah, PR: Bagaimana mungkin X[i] diinterpretasikan sama dengan i[X] di C? (Alright, homework: How can X[i] possibly be interpretted the same as i[X] in C?)
Possible Duplicate: In C arrays why is this true? a[5] == 5[a]
How can X[i] possibly be interpretted the same as i[X] in C?
I think the question is asking how an array[elementInArray] can be interpretted the same as elementInArray[array]
Also, unrelated on the same homework: "Explain why the "hidden bit" of floating point format does not need to be represented." (in terms of 32 bit words of binary)
‑‑‑‑‑
參考解法
方法 1:
In C, X[i] = i[X] = *(X + i) = *(i + X). As per commutative property, they are same.