Multiple choice

Which of the following represents the correct precedence order among ! (NOT), && (AND) and || (OR)?

  1. !> &&> ||

  2. !> ||> &&

  3. &&> ||> !

  4. &&> !> ||

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This option is correct as precedence of NOT operator is higher than AND and OR operator and precedence of AND operator is higher than OR operator.