0

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)

Community
  • 1
  • 1
Jordan
  • 91
  • 1
  • 2
  • You have two unrelated questions here. You should split them. But the first one is a duplicate and the second one can probably be easily googled. – Mysticial Oct 25 '12 at 07:27

1 Answers1

3

In C, X[i] = i[X] = *(X + i) = *(i + X). As per commutative property, they are same.

max
  • 4,248
  • 2
  • 25
  • 38