Re:Stress impairs cognitive functions - The loss of those fu...
by queensnake on Saturday January 12, 2008 @07:56PM
(#97705)
This will blow people's mental models of C (genuine example):
[ Parent
| on HN ]
Re:Stress impairs cognitive functions - The loss of those fu...
by alxv on Saturday January 12, 2008 @09:31PM
(#97726)
See? I read that both forms are translated to * (c + n), which
explains the equivalence. Weird, no?
Well, that surely is evil, yet perfectly valid C code. But personally, I don't find it surprising. Of course, you need to grok what A[n] really is -- i.e., syntactic sugar for *(A + n), as you just explained.