Pointer declarations ...

Started by
12 comments, last by rip-off 18 years, 7 months ago
Quote:Original post by Telastyn
And I do know of companies/courses that have required one or the other as part of their standardized format.
Quote:Conversations: The Good, the Bad, and the Deprecated by Jim Hyslop and Herb Sutter:
"No. No, no, no. No coding standard worth your time defines such things"

Enigma
Advertisement
Quote:Original post by SirLuthor
Or mutable. Or auto. Or register. [grin]

mutable, auto and register are non-issues since they don't modify types, they modify variables, so they don't need to be placed on the right hand side of the *.
I've seen int * pointer before, but then it sort of looks like you're multiplying something. Makes me wonder why the * symbol was chosen and not something else for pointers.
Quote:Original post by AsOne
I've seen int * pointer before, but then it sort of looks like you're multiplying something. Makes me wonder why the * symbol was chosen and not something else for pointers.


the number of repetions of many characters in c ( and c++ ) is weird - particulary '(' and ')'

function arguments, function calling, c-style casts, sizeof( ), some other stuff i can't remember...

and '&'

references - address operator - bitwise anding - logical anding

looking at my keyboard - almost any printable character has been abused like so.

what alternative was there?

maybe '¬' (unless that is being used...)

This topic is closed to new replies.

Advertisement