C Tutorial/Operator/Relational Operators

Материал из C\C++ эксперт
Версия от 10:32, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Relational operators

  1. Relational operators are used in Boolean conditions or expressions.
  2. Boolean conditions or expressions return either true or false.
  3. The relational operator returns zero values or nonzero values.
  4. The zero value is taken as false while the nonzero value is taken as true.
  1. The relational operators are as follows: <, <=, >, >=, ==, !=.
  2. The priority of the first four operators is higher than that of the later two operators.

5.4.Relational Operators 5.4.1. Relational operators