taking x=5 , y=4 give the final values of x and y after the following expression is evaluated:
x += x++ - ++y % y- -;
Answers
Answered by
0
Answer:
10
Explanation:
> x += x++ - ++y % y--
> x += 5 - 5 % 5
> x += 5 - 0
> x = x + 5
> x = 5 + 5
> x = 10
Answered by
1
Given,
x=5,y=4
Now,
x+= x++ - ++y%y--
Or,
x+= 5-5%5
Or,
x+=5-0
Or,
x+=5
Or,
x=5+5=10
Therefore,
x=10
y=4
Similar questions