1

I am wondering if anyone can explain the behavious of comparison operators when using booleans and integers.

Why do the following statements produce the results they do?

false < = 9 // true
false >= 9 // false

Thanks

1 Answers1

4

The representation of false in memory is 0. That's why you obtain those results.