C Programming For Dummies
Book image
Explore Book Buy On Amazon

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:

Symbol Meaning or Pronunciation “True” Comparison Examples
< Less than 1 < 5
8 < 9
== Equal to 5 == 5
0 == 0
> Greater than 8 > 5
10 > 0
<= Less than or equal to 4 <= 5
8 <= 8
>= Greater than or equal to 9 >= 5
2 >= 2
!= Not equal to 1 != 0
4 != 3.99

About This Article

This article is from the book:

About the book author:

Sandra Hardin Gookin serves as a parenting expert for Parents Magazine and Working Mother Magazine.

Dan Gookin wrote the international bestseller DOS For Dummies. They have four sons.

This article can be found in the category: