if x=3 and x+= ++x - --x + 4, what will be the final value of x ?
Answers
Answered by
1
Answer:
plz mark as brainlist i have only 5
Step-by-step explanation:
What is the answer of x=++x + ++y, if x=5 and y=4?
Well the Answer will be 11.
How?
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.
Answered by
5
Answer:
x=++x + (++x) ;
x=4 + (++x) ;
x=4+(5);
x=9
Step-by-step explanation:
mark me as brainlist
Similar questions