+ 2

Boolean Operator Precedence

The examples in this section are sort of vague. Are we interpreting this as (not 1) == 1, or as not (1 == 1)?

18th Aug 2016, 2:15 AM
Taylor Street
Taylor Street - avatar
5 Respuestas
+ 2
(not 1) == 1 this is correct precedence. first unary operator comes then binary.
18th Aug 2016, 9:51 PM
Amit Gupta
Amit Gupta - avatar
+ 2
Is 1 = 1 ?
6th Sep 2016, 8:13 PM
David D'souza
David D'souza - avatar
0
Because the answer is same either way.
18th Aug 2016, 2:15 AM
Taylor Street
Taylor Street - avatar
0
1 === 1
22nd Sep 2016, 2:19 AM
Taylor Street
Taylor Street - avatar
0
It is interpreted as not (1==1) first 1==1 implies True Then not(1==1) implies not(True) which is False
11th Jan 2017, 12:43 AM
SUDEEPA GORLE
SUDEEPA GORLE - avatar