Multiple choice

In C language, x = x-y+1; means

  1. x = x-y+1

  2. x = -x-y-1

  3. x = -x + y +1

  4. x = x-y-1

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

The expression x = x-y+1; is a straightforward assignment statement in C language. It evaluates the right-hand side using current values and assigns it back to x, meaning the literal algebraic representation is identical to the option.