Computer Science, asked by anweshasaha72, 4 months ago

What values will be stored in x and y respectively after
executing the following
x =10, y =++x




Answers

Answered by sharukhazad699
0

Answer:

x = x++ + ++y; (1)

y = ++x + ++y; (2)

In (1) this is the following operations to be done.

i) ++y

ii) x = x+y

iii) x ++

In (2) this is the following operations to be done.

i) x ++

ii) y++

iii) y = x + y

Similar questions