# What is equal to relational operator?

Asked By: Hoa Viaud | Last Updated: 27th January, 2020

Category:
technology and computing
databases

The equality and

**relational operators**determine if one operand is greater than, less than,**equal**to, or not**equal**to another operand. The majority of these**operators**will probably look familiar to you as well. Keep in mind that you must use " == ", not " = ", when testing if two primitive values are**equal**.Also question is, what is relational operator with example?

**Relational operators** are used to find the relation between two variables.

**Relational operators** in C:

Operators | Example/Description |
---|---|

< | x < y (x is less than y) |

>= | x >= y (x is greater than or equal to y) |

<= | x <= y (x is less than or equal to y) |

== | x == y (x is equal to y) |

Also Know, what are the outputs of relational operators? The **output** of the **relational operator** is (true/false) **boolean** value, and in Java, true or false is a non-numeric value that is not related to zero or one.

Beside this, what are the 6 relational operators?

Java has **six relational operators** that compare two numbers and return a boolean value. The **relational operators** are < , > , <= , >= , == , and != .

What are the relational operators in C language?

Relational Operators in C

Operator | Description | Example |
---|---|---|

== | Checks if the values of two operands are equal or not. If yes, then the condition becomes true. | (A == B) is not true. |

!= | Checks if the values of two operands are equal or not. If the values are not equal, then the condition becomes true. | (A != B) is true. |