What do you understand by boolean type data? explain with an example?
Answers
Answered by
8
Boolean is a value. Either true(1) or false(0).
if equation is true, it will return true/1 . Otherwise it will return false/0
=============================================================
Ex: 20 mod 2 == 0
Ans : 1 ...(that is, it is true)
EX: 20 mod 3 == 0
Ans: 0 ...(that is ,it is false)
===========================================================
Answered by
4
Boolean literal stores a Boolean value that is either true or false and with in quotes
if the answer help ^_^
please follow up me
Similar questions