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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?