Expressions and Assignment Statements

AP Computer Science A· difficulty 2/5

After <code>int x = 7; x++;</code>, the value of <code>x</code> is

  • A

    7

  • B

    14

  • C

    6

  • D

    8

    check_circle

Explanation

<code>x++</code> increments by 1.

Want 10 more like this — adaptive to your weak spots?

Related questions