cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Easy question Maybe?
Easy question Maybe?
Dec 7, 2011 at 4:56am UTC
Lazysquirell
(26)
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 UTC
Peter87
(11234)
(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 UTC
Dec 7, 2011 at 6:38am UTC
Lazysquirell
(26)
OK i can makes sense out of that its weird but
this utilizes the xor gate?
Topic archived. No new replies allowed.