|
|
11 |
A postfix expression followed by an expression in square brackets is a postfix expression. One of the expressions shall have the type “pointer to T” and the other shall have enumeration or integral type. The result is an lvalue of type “T.” The type “T” shall be a completely-defined object type.56) The expression E1[E2] is identical (by definition) to *((E1)+(E2)). [Note: see 5.3 and 5.7 for details of * and + and 8.3.4 for details of arrays. ] |
a[5]
becomes *(a+5)
where a is a pointer 5[a]
becomes *(5+a)
a+5
and 5+a
are evaluated to the same result.