Advertisements
Advertisements
प्रश्न
Which of the following is the correct precedence of logical operators?
विकल्प
!, &&, ||
&&, !, ||
||, !, &&
&&, ||, !
MCQ
उत्तर
!, &&, ||
Explanation:
- ! (logical NOT) has the highest precedence.
- && (logical AND) comes next.
- || (logical OR) has the lowest precedence.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?