Write the type of C++ Operators (Arithmetic, Logical, and Relational Operators) from the following:
(i) ! (ii) != (iii) && (iv) %
Answers
Answered by
0
Explanation:
! it is Not operator which comes in Logical operators .
■example
operator=!
operands=a
operation=!a
It is Used to check if the operand is false
2.
!=Not equal to operator which comes in Relational operators
■example
operator=!=
operands=a, b
operation=(a!=b)
It is Used to check if both operands are not equal.
3.
&& And operator which comes also in Logical operators
■example
operator=&&
operands=a, b
operation=(a && b)
It is Used to check if both the operands are true
4.
% it is modulus operator which comes in Arithmatic operators.
■example
operator= %
operands=a, b
operation=a % b
It is used to find the remainder when two integral digits are divided
Similar questions
Science,
6 months ago
Science,
6 months ago
English,
6 months ago
Math,
1 year ago
Environmental Sciences,
1 year ago
Environmental Sciences,
1 year ago