Computer Science, asked by iftikar6, 3 months ago

give the prioritiy in logical operators​

Answers

Answered by MissFairyy
3

Answer:

The order of precedence is: logical complements ( not ) are performed first, logical conjunctions ( and ) are performed next, and logical disjunctions ( or ) are performed at the end. Notice: You can always use parentheses to change the default precedence.The logical-AND operator ( && ) has higher precedence than the logical-OR operator ( || ), so q && r is grouped as an operand. Since the logical operators guarantee evaluation of operands from left to right, q && r is evaluated before s--.

Hope this helps you

Similar questions