Relational Expressions

Relational Expressions

A relational expression consists of constants, variables, or arithmetic expressions that are combined by a relational operator. A relational expression is written to find a relation between two expressions. It returns only one value, which is either true or false.
For example, 10> 6 is a relational expression. It indicates a relation between two constants. Since the constant value 10 is greater than 6, this relational expression returns a true value.
The operator ">" used between the two values is called the relational operator. It specifies relation between two arithmetic expressions or values.
Creative Commons License
Pakistan How by Tahira Aijaz is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.