Mildly interesting quirks of C
My favorite C "quirk": If you have an array and you want to access an item of it, you can swap the variable and the index number (put the variable name inside brackets and the number outside):<p><pre><code>    a[5] 
</code></pre>
is the same as:<p><pre><code>    5[a]
</code></pre>
why?<p><pre><code>    a[5] is actually sugar for *(a + 5), so by commutative property, you can also do *(5 + a) to access the same memory position :-)</code></pre>