@JohnFilleau: Unfortunately, a huge percentage of new C and C++ programmers do it, then come here because they don't understand why
*bar
/
bar[0]
is exploding on them, so you'll have a lot of folks to draw and quarter. :-) I consider attaching the
*
s to the name, not the type (even when there is only one name being declared), to be a best practice in line with using prefix increment by default (even when the type is a primitive for which postfix increment is harmless and the result isn't used, e.g.
for
loop increments); because you want to develop habits that lead to correct code. —
ShadowRanger 57 secs ago