My coworker is 0 for 2 on questions inspired by him (1, 2), so I decided to give him a chance to catch up.
Our most recent argument is about the placement of "const" on declarations.
He believes it should be placed either in front of the type or after the pointer.
The explanation is that this is what everyone else does, and different styles are likely to be confusing.
Thus, a constant pointer to int and a constant pointer to int would be:
const int *i;
...READ MORE
Jul 22, 2022
in C++
by
Nicholas
• 7,760 points
•
554 views