P
Paminu
In math this expression:
(a < b) && (b < c)
would be described as:
a < b < c
But why is it that in C these two expressions evaluate to something
different for the same values of a, b and c?
e.g:
for a = 0, b = 3 and c = 2:
a < b < c = 1
(a < b) && (b < c) = 0
when typed in C.
(a < b) && (b < c)
would be described as:
a < b < c
But why is it that in C these two expressions evaluate to something
different for the same values of a, b and c?
e.g:
for a = 0, b = 3 and c = 2:
a < b < c = 1
(a < b) && (b < c) = 0
when typed in C.