x+=y--*8/x++ +y;Find the value of x if x=50 and y=40?
Answers
Answered by
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
0
Hello good morning, have a great day✌✨
Similar questions
Computer Science,
5 months ago
Computer Science,
5 months ago
Math,
11 months ago
Science,
11 months ago
Physics,
1 year ago