0

Why ((x > y)&&(x>z)) works and (x > (y && z)) does not work ?

While i am comparing integers x, y ,z such that is x is the greatest number or not :- ((x > y)&&(x>z)) , This expression worked. But the expression (x > (y && z)) does not work . Why?

10th Aug 2019, 2:46 AM
Parminder Singh
Parminder Singh - avatar
5 Antworten
0
Can you explain it more clearly and elaborately with an example
10th Aug 2019, 3:17 AM
Parminder Singh
Parminder Singh - avatar
0
Parminder Singh What language is this in reference to and did you get an error message?
10th Aug 2019, 3:52 AM
ODLNT
ODLNT - avatar
0
ODLNT This is in reference to C language. No i didn't got an error message but it didn't worked properly.
10th Aug 2019, 10:41 AM
Parminder Singh
Parminder Singh - avatar