If you’re programming in C — or any other language — you need to use If/Else statements. The comparison symbols you need if you’re working with C and the Else statements they generate are shown in the following table:
| If Comparison | 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) |
dummies
Source:http://www.dummies.com/how-to/content/c-language-comparisons-and-their-opposites.html
No comments:
Post a Comment