Comparing with 0.
From: Val (valmont_programming_at_hotmail.com)
Date: 02/20/05
- Next message: Thomas Matthews: "Re: Comparing with 0."
- Previous message: James Dennett: "Re: Big-O"
- Next in thread: Thomas Matthews: "Re: Comparing with 0."
- Reply: Thomas Matthews: "Re: Comparing with 0."
- Reply: David White: "Re: Comparing with 0."
- Reply: marbac: "Re: Comparing with 0."
- Reply: Robert W Hand: "Re: Comparing with 0."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 20 Feb 2005 22:41:23 +0100
How does C++ compare an integer with the value "0"?
I've tried to fiddle with the biswise operators but I can't do it.
Is the "==" operator in C++ somewhere defined in a header or source file for
(say) integers? Where?
Obviously I would like to write (myInt == 0) in terms of bitwise operators
for an 8 bit=1 byte (32 bit) machine.
- Next message: Thomas Matthews: "Re: Comparing with 0."
- Previous message: James Dennett: "Re: Big-O"
- Next in thread: Thomas Matthews: "Re: Comparing with 0."
- Reply: Thomas Matthews: "Re: Comparing with 0."
- Reply: David White: "Re: Comparing with 0."
- Reply: marbac: "Re: Comparing with 0."
- Reply: Robert W Hand: "Re: Comparing with 0."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]