Easy question Maybe?

Dec 7, 2011 at 4:56am
I dont understand this
int d=16.e=17
then the value of d == --e is 1 ( I understand this part)
so why then is
int z=3,x=3,c=3
(z == x == c) the value of this is 0 Why is it not 1?
Dec 7, 2011 at 5:19am
(z == x == c) is the same as ((z == x) == c)

(z == x) is true. True represented by the integer 1 so ((z == x) == c) becomes (1 == c) which is false (0).
Last edited on Dec 7, 2011 at 5:19am
Dec 7, 2011 at 6:38am
OK i can makes sense out of that its weird but
this utilizes the xor gate?
Topic archived. No new replies allowed.