5 ms·
In my own projects, I like to put the * on its own, like so: int const * const i; This is nice because you can naturally read the signature from right to le
by _hexley_ 6y ago
In my own projects, I like to put the * on its own, like so:
int const * const i;
This is nice because you can naturally read the signature from right to left. "i" is a constant pointer to a constant integer. It's a little unconventional, but I think it's a really clear way to convey the types.