Relational operators : Relational Operators « Operator « C Tutorial






  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