+ 6

["Boolean Joke"]; 0 == false, 1 == true; What's this (boy == ??, girl == ??) in your favourite programming language

0 == false, 1 == true; what's the boolean value for: boy == ??, girl == ?? in your favourite programming language?

16th Mar 2017, 3:27 PM
Wisdom Abioye
Wisdom Abioye - avatar
3 ответов
+ 7
In Javascript: boy == true || false, girl == true && false
16th Mar 2017, 3:29 PM
Wisdom Abioye
Wisdom Abioye - avatar
+ 1
boy=NULL, girl=true
16th Mar 2017, 3:31 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar