r/ProgrammerTIL • • Sep 14 '17

Other [c++] Array declarations are commutative/invertible.

array[4] is equivalent to 4[array]. Not that you would ever really use it.

43 Upvotes

14 comments sorted by

View all comments

Show parent comment

10

u/redditsoaddicting Sep 14 '17

Access is what the OP meant. There's nothing like this for array declarations.

3

u/Srimshady Sep 14 '17

Oh ya my b