what are relational operators explain with the help of example
Answers
Explanation:
In computer science, a relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities. These include numerical equality (e.g., 5 = 5) and inequalities (e.g., 4 ≥ 3).
Answer:
Relational operators are important for making decisions. They allow us compare numeric and char (chars are treated like numbers in C++) values to determine if one is greater than, less than, equal to, or not equal to another.
Relational operators are binary meaning they require two operands.
Relational operators have left to right associativity. Left to right associativity means that when two operators of same precedence are adjacent, the left most operator is evaluated first.
Relational OperatorsMeaning>Greater than<Less than>=Greater than or equal to<=Less than or equal to==Equal to!=Not equal to