+ 9
Why this code is printing 1?
8 Answers
+ 7
2 = true, 4 = true, true && true = true (1).
+ 10
Thanks Anna
+ 8
It's logically true, that's why it's true.
+ 7
Werg Serium Yes bro I tried that
+ 5
any int not 0 is true, so if you gat -2 && 4 that's still true, that's C for you
+ 5
+ 1
Hey Yamin don't use &&, use only & instead and you will get 0.
0
Every number different of 0 is true. It's sucks but it's reallity ā¹