What will be the sequence of operations? p == true &&! (p &&! q) && q! = (r ||! r && s ||! s)

  • one
    sequence: from left to right - Grundy
  • @Grundy is not always. Operators have priority and direction. For example, the + operator works from right to left. - Misha Saidov
  • @MishaSaidov, is there an + operator in this expression? and what does the + operator mean from right to left ? - Grundy
  • @Grundy is not, but there is a logical negation (!), Which is from right to left - Misha Saidov
  • 2
    @MishaSaidov, the unary operation applied several times remains unary :-) - Grundy

1 answer 1

  • p == true &&! (p &&! q) && q! = (r ||! r && s ||! s)
  • .... 7 ......... 10..6 ..... 1..0 ..... 9 ..... 8 ...... 5.3 .... ...... 4.2 ..

took priority from here

recheck (possibly human factor))