Binary Operator

Definition & Meaning

Last updated 23 month ago

What is a Binary Operator?

A Binary Operator is an operator that operates on two Operands and manipulates them to return a end result. Operators are represented by means of unique Characters or via key phrases and provide an smooth manner to evaLuate numerical values or man or woman Strings.

Binary operators are presented in the shape:

Operand1 Operator Operand2

What Does Binary Operator Mean?

Some commonplace binary operators in Computing include:

  • Equal (==)
  • Not identical (!=)
  • Less than (<)
  • Greater than (>)
  • Greater than or equal to (>=)
  • Less than or identical)
  • Plus ( )
  • Minus (-)
  • Multiplication (*)
  • Divide (/)

Equal (==) and not-same (!=) are known as equality operators. They produce a result of genuine (or 1) or false (or 0). This Form of operator returns "true" if each operands have the same price, or "false" in the Event that they don’t have the equal value.

For Instance, the subsequent conditional operation may be achieved if the operands are identical:

if(operand1 == operand2) //do the operation

Greater than (>), much less than (<), more than or equal to (>=) and much less than or same to (<=) are Relation operators, which evaluate operands and convey a end result of either proper or fake. When two operands are compared, the end result depends at the relative location of the twocalled logical operators. They examine operands and return a result of both genuine (1) or fake (zero). In logical AND, if both operands are authentic then the end result is proper. If both one of the operands is false, the result may be fake. In logical OR, if each operands are actual or either one of the operands is authentic then the end result is true. If both operands are false then the result could be false.

Share Binary Operator article on social networks

Your Score to Binary Operator article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Binary Operator

867- V4

tech-term.com© 2023 All rights reserved