Multiple choice

If ASCII value of 'x' is 120. What is the value of i = ('x' - 'w')/3?

  1. 1

  2. 2

  3. 0

  4. 4

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

The ASCII value of 'x' is 120 and 'w' is 119. The expression becomes (120 - 119) / 3, which is 1 / 3. In integer arithmetic, this evaluates to 0.