What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered?
Please only one feature per answer.
language-agnosticprogramming-languages
What is, in your opinion, the most surprising, weird, strange or really "WTF" language feature you have encountered?
Please only one feature per answer.
Best Answer
In C, arrays can be indexed like so:
which is very common.
However, the lesser known form (which really does work!) is:
which means the same as the above.