struct named 0

  • Thread starter Mohd Hanafiah Abdullah
  • Start date
R

Richard Bos

Christian Bau said:
You could do us all a favour and tell us what is missing.

I don't think so. First of all because there is no definitive list, and
the normative text is quite simple to understand: _whenever_ a null
pointer constant appears in a pointer context, no matter whether there
is an explicit mention of it elsewhere in the Standard as well, it is
translated to a null pointer. That's all. Really, that's the whole
story. No list need be involved.
And the second reason is that if I now give a list of what I think are
all mentions of pointer contexts in the Standard, I am clearly
guaranteed to miss one. Hah.
But I'll mention one that you did miss: an explicit cast. Which is what
caused all this discussion.
Of course they are. The Standard defines operators, and then under
"Constraints" it gives a list of all the operand combinations that are
allowed.

Yes. Thus demonstrating nicely why grep is no substitute for reading the
Standard yourself.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,404
Latest member
PerryRutt

Latest Threads

Top