+ 2
Which one is greater, -1 or 0?
This is in a challenge question using logical operator &&
3 ответов
+ 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.
+ 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....
+ 2
Saurabh B
Sumit Programmer
Thanks great stuff!