Data type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Data type

What is the size of boolean data type ?

27th Feb 2017, 9:47 AM
{ sood(Hemant , Prakash); }
{ sood(Hemant , Prakash); } - avatar
2 Answers
+ 8
Size of boolean in most cases is 1 byte but out of that only 1 bit is used as it can contain only two values (2^1=2) 1.true 2.false .The rest 7 bits are not used :)
1st Feb 2018, 11:52 AM
Cyberspace Cyborg
Cyberspace Cyborg - avatar
+ 4
9 byte in java.
27th Feb 2017, 10:08 AM
Albertz
Albertz - avatar