- 3

What is boolean in c language?

22nd Oct 2020, 2:41 PM
Exia
5 Respostas
+ 3
1 or 0
23rd Oct 2020, 3:27 AM
Daulet
+ 2
boolean datatype has values just either true(1) or false(0)
22nd Oct 2020, 3:01 PM
Jayakrishna 🇮🇳
+ 2
Long story short: if you #include <stdbool.h> you can use false instead of the number 0 and true instead of the number 1 These are infinite loops: while( 400 ); while( -13 ); while( true ); These loops doesn't execute a single time: Int notSoTrue = 0; while( 0 ); while( notSoTrue ); while( false );
22nd Oct 2020, 3:08 PM
Davide
Davide - avatar