r/ProgrammerTIL • u/Srimshady • 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
r/ProgrammerTIL • u/Srimshady • Sep 14 '17
array[4] is equivalent to 4[array]. Not that you would ever really use it.
View all comments
Show parent comment
1
u/IbanezDavy Oct 12 '17 edited Oct 12 '17
Nope, but last I checked,
3[arr] should be ok, for the same reason as describe in this post.