C Language Comparisons and Their Opposites
Part of the C All-in-One Desk Reference For Dummies Cheat Sheet
Programming in C, or any programming language, means building comparisons — greater and lesser than and equal to in various combinations. Get to know the comparisons C uses and their opposites:
| If Comparision | Else Statement Executed By | This Condition |
|---|---|---|
| < | >= | Greater than or equal to |
| == | != | Not equal to |
| > | <= | Less than or equal to |
| <= | > | Greater than |
| >= | < | Less than |
| != | == | Equal to |









