+ 2

Which one is greater, -1 or 0?

This is in a challenge question using logical operator &&

11th Nov 2019, 3:27 AM
david chongo
david chongo - avatar
3 Answers
+ 6
Number line is good example Suppose you are standing between -1 or 0 and someone said that any of -1 and 0 gives or takes something. Answer must be true and false. So -1 says that I will give you something or take something from you, that means it is true becz you will definitely get something. And 0 said that I will not give you anything means it is false.
11th Nov 2019, 3:59 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 3
See.. In logical operations 0 means false while any value either +ve Or -ve is considered true.... It's not greater or less than concept here....
11th Nov 2019, 3:32 AM
Saurabh B
Saurabh B - avatar
+ 2
Saurabh B Sumit Programmer Thanks great stuff!
12th Nov 2019, 5:21 AM
david chongo
david chongo - avatar