Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's actually spelled out in K&R in more technical language:

"The array subscripting operation is defined so that E1[E2] is identical to *(E1+E2). Therefore, despite its asymmetrical appearance, subscripting is a commutative operation."

(my emphasis)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: