Relational and Logic operations
Relational expressions:a>b, a<b, a<=b, a>=b, a==b, a!=bthese expressions all have values, true or false (0 or 1)Thus the following is legal :printf(“%d”, a>b);
Logic expressions:a||b a or ba&&b a and b!a not a
Note:(test) ? stmt1 : stmt2; is equal to:if (test) stmt1;else stmt2;