Strangest language feature

Thomas Bonini picture Thomas Bonini · Jan 3, 2010 · Viewed 487.7k times · Source

What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered?

Please only one feature per answer.

Answer

Edan Maor picture Edan Maor · Jan 3, 2010

In C, arrays can be indexed like so:

a[10]

which is very common.

However, the lesser known form (which really does work!) is:

10[a]

which means the same as the above.