i dont understand the logic behind this can someone explain this to me
int a,b,c,d,e,f
a = (6 < 3); a= 0; (false)
b = ! a; b=Not(0);
b=1 why is it 1
c = a && b;
d = (a == !b) && ('t'>'A');
e = d || c && !a;
f = c && d || e;
Printable View
i dont understand the logic behind this can someone explain this to me
int a,b,c,d,e,f
a = (6 < 3); a= 0; (false)
b = ! a; b=Not(0);
b=1 why is it 1
c = a && b;
d = (a == !b) && ('t'>'A');
e = d || c && !a;
f = c && d || e;
Is this a typo:
In C, 'true' is 1 and 'false' is zero, but "anything not zero" is accepted as true in a condition (e.g. in if/while conditions).Code:d = (a == !b) %% ('t'>'A');
--
Mats