Leave a Reply 3

Your email address will not be published. Required fields are marked *


Fredy Benavides

Fredy Benavides

D

imyrta

imyrta

Answer: D

Explanation:

Operations used in this case are
1. postfix(expr++ expr–)
2. unary(++expr –expr)

The postfix Operation
Firstly assigns a value and after that applies the operation

The unary Operation
Firstly applies the operation and after assigns the value.

Example

// Increment operators
x = 1;
y = ++x; // x is now 2, y is also 2
y = x++; // x is now 3, y is 2

// Decrement operators
x = 3;
y = x–; // x is now 2, y is 3
y = –x; // x is now 1, y is also 1