What is the difference of bool and boolean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 16

What is the difference of bool and boolean?

10th Jan 2017, 10:04 PM
Benjámin Kis
Benjámin Kis - avatar
6 Answers
+ 12
bool is in C++, boolean in Java. As I know, but they are the same in terms of what they do
11th Jan 2017, 12:34 AM
Filip
Filip - avatar
+ 8
in Python its booleen too I think it just depends on the language
13th Apr 2017, 1:34 PM
Hasan Fares
Hasan Fares - avatar
+ 4
Bool is short for boolean... I think...
10th Jan 2017, 10:10 PM
ein siedler
ein siedler - avatar
+ 2
bool is the short term of boolean
20th Apr 2017, 8:20 PM
Stephcyrille
Stephcyrille - avatar
+ 2
Semantically, nothing. They both MEAN the same thing, a data type of true or false. However, syntactically, everything is different about it. Every programming language READS our code differently. One program may be set up to expect the keyword ‘bool’ and another ‘boolean’.
23rd Jul 2017, 2:46 AM
Makey
Makey - avatar
28th Apr 2024, 11:51 AM
zahra oveyedzade
zahra oveyedzade - avatar