E
Emmanuel Delahaye
Flash Gordon a écrit :
May be the good wording should be 'reference' ?
"A reference is a (unique ?) value that identifies the memory location
of an object."
"NULL is a reference constant meaning invalid reference."
"A pointer is a variable that holds a reference to an object or NULL."
or:
"A pointer is a variable that holds the reference of an object or NULL."
"When a pointer is typed, the dereference operator (*) allows a read of
write acces to the referenced object."
etc. I'm not going to rewrite the C-standard, but I think that this kind
of wording could be used in C-books and tutorials for consistency.
The problems I see with the term address are:
After all, in summary, C pointers are slightly more abstract than
machine addresses.
I think it would be better if the term "address" was not used, expect
May be the good wording should be 'reference' ?
"A reference is a (unique ?) value that identifies the memory location
of an object."
"NULL is a reference constant meaning invalid reference."
"A pointer is a variable that holds a reference to an object or NULL."
or:
"A pointer is a variable that holds the reference of an object or NULL."
"When a pointer is typed, the dereference operator (*) allows a read of
write acces to the referenced object."
etc. I'm not going to rewrite the C-standard, but I think that this kind
of wording could be used in C-books and tutorials for consistency.