0

Tricky null?

Who can explain that? Null isn't equal to zero but if increment null it will be 1. https://code.sololearn.com/W815R83fIHyA/?ref=app

16th Sep 2017, 2:47 PM
Siroj Samadov
Siroj Samadov - avatar
2 Answers
+ 5
coerce to not equal to 0 maybe :/ (Wait another ans)
16th Sep 2017, 2:58 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
null is not zero , null is nothing and the data type of null is none whereas zero is integer type unlike null . if we add 1 in nothing (null) then it will be 1 as in zero. in another word null is like an empty box but in case of zero , it has its value i.e "0"
16th Sep 2017, 3:27 PM
Gaman Tyagi
Gaman Tyagi - avatar