English

Write about Binary operators used in C++.

Advertisements

Question

Write about Binary operators used in C++.

Short/Brief Note
Advertisements

Solution

Binary Operators require two operands:
Arithmetic operators that perform simple arithmetic operations like addition, subtraction, multiplication, division (+, -, *, %, /), etc. are binary operators which require a minimum of two operands.

Relational operators are used to determining the relationship between their operands. The relational operators (<, >, >=, <=, ==, !=) are applied on two operands, hence they are binary operators. AND, OR (logical operator) both are binary operators. The assignment operator is also a binary operator (+=, – =, *=, /=, %=).

shaalaa.com
Lexical Units (Tokens)
  Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Evaluation - Section - D [Page 131]
Advertisements
Share
Notifications



      Forgot password?
Use app×