Which of the given operators has lowest precedence
Answers
Answered by
3
Explanation:
LOWEST PRECEDENCE
The compound logical operators, &&, ||, -a, and -o have low precedence. The order of evaluation of equal-precedence operators is usually left-to-right.
Answered by
0
Q) Which of the following operators has the lowest precedence?
a) !=
b) &&
c) ?:
d) ,
Option (d) comma operator has the lowest precedence.
- The order in which an expression is evaluated is based on the operator precedence.
- != this operator is used to produce output as true when the operands are different.
- && this is logical and the operator which has higher precedence returns a true value only if both the operands are the same.
- The Conditional operator is ?:, which takes three operands instead two.
- In an expression when the com operator is used then this operator will check the first operand and discard that result.
- The comma operator will give you the result of the last operand only.
- This operator has the lowest precedence.
Similar questions