With C arrays, why is it the case that a[5] == 5[a]? (stackoverflow.com) 23 points by TobTobXX 3y ago ↗ HN
[–] busfahrer 3y ago ↗ This essentially comes down to the commutative property of pointer arithmetic.This was also used in David Korn‘s (creator of the Korn shell) 1987 IOCCC entry:https://www.ioccc.org/1987/korn/korn.c
2 comments
[ 3.2 ms ] story [ 10.8 ms ] threadThis was also used in David Korn‘s (creator of the Korn shell) 1987 IOCCC entry:
https://www.ioccc.org/1987/korn/korn.c