I'm very new to C and I'm going through some example code and I'm not sure what these operators in the if statements are "asking", so to say.
Here is the code:
int main(void){
int a = 99;
int b = 0;
int c = 74;
if( a || b )
printf("first\n");
else
printf("second\n");
if( a && c )
printf("third\n");
else
printf("fourth\n");
if( !a )
printf("fifth\n");
else
printf("sixth\n");
if( (a && b) || c )
printf("seventh\n");
else
printf("eighth\n");
if( !c || !b )
printf("nineth\n");
else
printf("tenth\n");
}
I know what the operators mean, I just don't understand what is going on when they're going through the "if" statements. Could someone please explain this to me?