Computer Science, asked by adilbtr85, 11 months ago

x+=y--*8/x++ +y;Find the value of x if x=50 and y=40?​

Answers

Answered by Anonymous
7

Answer:

First is x=++x+ ++y

Now since it is having a pre increment of x first then it will increase x from 5 to 6 and assign 6 as the value for sum. And then comes ++y it is also a pre increment operator so it will also increase y from 4 to 5 and then will assign 5 for the sum .

Now the equation becomes

X=6+5

Therefore

X=11

Hope you got it.

HAPPY coding.

Answered by mehramanvi01
0

Hello good morning, have a great day✌✨

Similar questions