Computer Science, asked by drithi77, 4 months ago

Evaluate the following when x=10 and y=5 ++x + y++ + y++ + x + y

please tell me ​please

Answers

Answered by singh123328
2

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 i

I hope it will help you

please make me brainlest

Similar questions