Advertisements
Advertisements
प्रश्न
Write about Binary operators used in C++.
Advertisements
उत्तर
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 (+=, – =, *=, /=, %=).
APPEARS IN
संबंधित प्रश्न
Which of the following statements is not true?
The following constant is of which type?
0XCAFE
Write the following real constant into the exponent form:
0.319
Assume n = 10; what will be result of n++ and --n;?
Is C++ case sensitive? What is meant by the term “case sensitive”?
Write a short note on the const keyword with an example.
What is the difference between 56L and 56?
Determine which of the following are valid constant? And specify their type.
‘Name’
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
How relational operators and logical operators are related to one another?
