A way to remember Booleans | SoloLearn: Learn to code for FREE!

+3

A way to remember Booleans

Equal == it is like saying yes yes it does equal Not Equal != imagine this sign "!" as the first part of wrting Not, when you write the letter N you gotta use l first then \ then I so it would be like l\l so if you do it like !\!, it would be easier to remember.

3/30/2018 12:11:59 AM

Medo Hamdani

11 Answers

New Answer

+11

Be careful there: == and != aren't booleans. They are relational operators which return booleans. A boolean is a 1 bit datatype, so it can either be 1 (true) or 0 (false).

+7

you speak in riddles

+4

Chris Actually the size of a boolean datatype is at least 1 Byte (8bits) because in this way it can be addressed. Memory is addressable in bytes, not in bits.

+3

Hey Jan, will simplify my riddles next time.

+2

Thank you Chris for the elaboration :)

+2

Oops, seamiki is right! I answered at 2am, sorry for the mistake.

+1

StoneSmasher that's why i wrote "....boolean datatype is AT LEAST 1 Byte...."

0

seamiki actually a booleans size is 1 byte OR greater, it depends on how it was implemented in the compiler.

0

I wish there's a simpler way to understand all these you guys are discussing for newbies like me 🤔😟

0

Ashonsy🇳🇬 what part didn't you get?

0

think am getting the it now...== means yes yes whiles !\! means No