type *var -- vs. -- type* var

Karl Heuer karl at haddock.ima.isc.com
Sat Sep 9 05:52:10 AEST 1989


In article <4201 at ohstpy.mps.ohio-state.edu> SMITHJ at ohstpy.mps.ohio-state.edu writes:
>I have been learning C++ from a book by Bjarne and he consistently declares
>pointers with `type* var;' rather than `type *var;'

They're syntactically identical; whitespace isn't significant between tokens.
It's just Bjarne's personal convention.  I also dislike it, for the reasons
you noted, and I wish he'd used the more conventional style.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list