ProAnswers.org

In C arrays why is this true? a[5] == 5[a]

In C arrays why is this true? a[5] == 5[a]

this is Because

a[5] will evaluate to: *(a + 5)

and 5[a] will evaluate to: *(5 + a)

as 5+a and a+5 are same so its true that a[5]==5[a]