- 3
What is boolean in c language?
5 Antworten
+ 3
1 or 0
+ 2
boolean datatype has values just either true(1) or false(0)
+ 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 );