Constant Confusion

The const keyword in C can be confusing, so I wanted to put down my thoughts for my own benefit and for those looking for some clarity. In summary, I’m going to advocate you place const to the right, and read the declaration from right to left. What is const? const is a hint to the C compiler and programmer that a specific declaration or element of a declaration is immutable....

Dec 3, 2011 · 5 min