The number of the relational operators in the C language is

four
six
three
one E. None of the above

The correct answer is: C. three

The three relational operators in the C language are:

  • < (less than)
  • > (greater than)
  • == (equal to)

These operators can be used to compare two values and return a Boolean value (true or false). For example, the following statement will return true if the value of x is less than the value of y:

x < y

The following statement will return true if the value of x is greater than the value of y:

x > y

The following statement will return true if the value of x is equal to the value of y:

x == y

The relational operators can also be used in logical expressions. For example, the following statement will return true if the value of x is less than the value of y or the value of x is equal to the value of y:

x < y || x == y

Exit mobile version