Computer Science, asked by abcd7410, 9 months ago

Assume x is equal to 1.

So int z=x++

The result is:-
z=1
x=2

Q) How is z =1?

Please answer asap.

Answers

Answered by pcmbc2
0

Answer:

z=1 because postfix increment operator is used after X....which increases the value in the memory but keeps the initial value same of the variable

Similar questions