C NOT logical operator !

8 Views
Published
C NOT ! logical operator tutorial example explained

#C #NOT #!

// logical operators = ! (NOT) reverses the state of a condition

bool sunny = false;
bool subscribed = true;

if(!sunny){
printf("\nIt's cloudy outside!");
}
else{
printf("\nIt's sunny outside!");
}

return 0;
Category
Bro Code
Tags
c not, not c, c !
Be the first to comment