+ 2
I have some trouble with logical clauses
i dont understand why the expression (1||0) is true. it just doesn't make sense, numbers shouldnt have a Boolean value.
5 ответов
+ 6
1 == true
0 == false
(1||0) == (true||false)
+ 4
^_^
+ 3
jesus christ valentine you're everywhere XD
how do you find the time to answer every single question?
+ 3
yeah he is really a hacker mind XD
+ 2
guess what, back then when C was created it had no boolean values. This was only represented by numbers. But let's guess that you still don't get why boolean is represented by numbers, let's go lower, to processor level. Processor understands ONLY 1 (there is something - true) and 0 (there is nothing- false).