Easy question Maybe?

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?
(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
OK i can makes sense out of that its weird but
this utilizes the xor gate?
Topic archived. No new replies allowed.