Thursday, April 11, 2013

Obscure C

Lockless (via John Regehr):

Reordering the three keywords const typedef volatile won’t change the meaning. Neither will moving any (or all) of those keywords before the “struct”. C syntax is very flexible.


[In] C, the [] array access operation isn’t a sequence point. That means that even though you might expect to have some ordering between the calculation what array member to use, and the use of that array entry, there isn’t explicitly such a constraint in C99.

Comments RSS · Twitter

Leave a Comment