Quoting from the C11 standard :
Array subsripting (§ 6.5.2.1)
The definition of the subscript operator
[]
is thatE1[E2]
is identical to(*((E1)+(E2)))
.
I would like to know why are the brackets around E1
necessary (they were missing in the C89 standard), ie in which expression can (*(E1+(E2)))
be different from (*((E1)+(E2)))
?