Comment on Strangest Programming Language Feature?parentComments−sootzoo12yThere's an answer [1] on the linked SO thread (flip to the first page) but basically, the following two lines are equivalent in C:a[10] 10[a]This is because a[10] is equivalent to (a + 10), and 10[a] is equivalent to (10 + a), as the first comment on this answer explains.[1] http://stackoverflow.com/questions/1995113/strangest-languag...
Comments
There's an answer [1] on the linked SO thread (flip to the first page) but basically, the following two lines are equivalent in C:
a[10] 10[a]
This is because a[10] is equivalent to (a + 10), and 10[a] is equivalent to (10 + a), as the first comment on this answer explains.
[1] http://stackoverflow.com/questions/1995113/strangest-languag...