Multiple choice

Suppose i, j and k are integer variables with values 1, 2, 3 respectively, what is the value of the following expression?!((j+k) > (i+5))

  1. 5

  2. 0

  3. 1

  4. 6

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

i=1, j=2, k=3. (j+k) > (i+5) is (2+3) > (1+5), which is 5 > 6, which is false (0). The NOT operator !0 makes it true (1).