What do relational operators compare?

QuestionsQuestions8 SkillsProUse Basic Operators In CNov, 07 2025
084

Relational operators compare values to determine the relationship between them. They are used to evaluate expressions and return a boolean result (true or false). The common relational operators include:

  • > (greater than)
  • < (less than)
  • >= (greater than or equal to)
  • <= (less than or equal to)
  • == (equal to)
  • != (not equal to)

These operators are often used in conditional statements to control the flow of a program based on comparisons between variables or values.

0 Comments

no data
Be the first to share your comment!