News for hackers. Stuff that matters.
Re:Strangest Programming Language Feature? by sootzoo on Friday January 31, 2014 @09:46PM (#7160644)
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...

There are no comments on this comment yet.