Re:C-style: My favorite C programming practices
by spc476 on Monday May 20, 2024 @03:42AM
(#40413224)
I use the "right-to-left" style myself. To me, the qualifier (in this case, const), applies to the item to the right. This could be confusing:
The first const applies to the char, but the second one to the pointer itself. Being consistent:
The first const applies to the item to its left---char. The second const applies to the item to its left---the pointer. To recap:
[ Parent
| on HN ]
There are no comments on this comment yet.