Re: C Questions



pete said:

Richard Heathfield wrote:

! yields 0 if its (numeric!) operand is non-zero, and 1 otherwise.

! yields 0 if its scalar operand does not compare equal to zero,
and 1 otherwise.

Oh yes, you can do !p, can't you? I see that as being rather silly, but
you're quite right that it's legal. I'm not sure that I see the
distinction between "is non-zero" and "does not compare equal to zero". I
consider them to be equivalent statements.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: C Questions
    ... yields 0 if its scalar operand does not compare equal to zero, ...
    (comp.lang.c)
  • Re: C Questions
    ... pete said: ... yields 0 if its scalar operand does not compare equal to zero, ... and "does not compare equal to zero". ...
    (comp.lang.c)
  • Re: C Questions
    ... yields 0 if its scalar operand does not compare equal to zero, ... The difference is that a null pointer is not zero so talking about ...
    (comp.lang.c)
  • Re: Why Einstein geometrized away Newtons "force of gravity"
    ... seeing he gained 10 lbs) the gravitational force is not zero. ... But this is not because "gravitational force is not zero", it is due to Pete's WEIGHT being not zero. ... This is correct ONLY in coordinates fixed to the surface of the earth. ... No surprise -- Pete is at rest in these coordinates, so in pmb's worldview, one must INVENT a "gravitational force" to cancel F_s; there's no requirement that such inventions must behave like physical quantities behave. ...
    (sci.physics.relativity)
  • Re: Why Einstein geometrized away Newtons "force of gravity"
    ... setting proper mass to zero). ... and its should represent covariant components, ... and Pete standing on his bathroom scale, ... bathroom scale, relative to Earth coordinates. ...
    (sci.physics.relativity)