C Language Comparison Symbols

If you’re writing programs in C, you need to use comparison symbols. The symbols C uses, their meanings, and examples are shown in the following table:






































SymbolMeaning or Pronunciation“True” Comparison Examples
<Less than1 < 5

8 < 9
==Equal to5 == 5

0 == 0
>Greater than8 > 5

10 > 0
<=Less than or equal to4 <= 5

8 <= 8
>=Greater than or equal to9 >= 5

2 >= 2
!=Not equal to1 != 0

4 != 3.99








dummies

Source:http://www.dummies.com/how-to/content/c-language-comparison-symbols.html

No comments:

Post a Comment