What values will be stored in x and y respectively after
executing the following
x =10, y =++x
Answers
Answered by
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
India Languages,
1 month ago
Math,
4 months ago
Social Sciences,
9 months ago
Math,
9 months ago
English,
9 months ago