What is use of bool? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is use of bool?

16th Apr 2017, 3:43 PM
Harikrishnan s
Harikrishnan s - avatar
4 Answers
+ 6
It is used for True (1) or False (0)
16th Apr 2017, 3:47 PM
Manual
Manual - avatar
+ 6
This may answer some othe questions you may have. Cheers https://www.sololearn.com/discuss/284542/?ref=app
16th Apr 2017, 3:49 PM
Manual
Manual - avatar
+ 5
Logical expressions are used in "if", "while", "for" and other statements.
16th Apr 2017, 3:47 PM
Tamás Barta
Tamás Barta - avatar
+ 2
it's used to check/define if an operation or statement is true or false.
16th Apr 2017, 3:46 PM
Welliton Malta
Welliton Malta - avatar