Computer Science, asked by Himanshu2250, 1 year ago

using increment and decrement operators of java language of computer solve:If a=5 then a-=(a--)-(--a)

Answers

Answered by sahilloeip5u6ag
4
C - Output of a++ + ++a + a++ What is the answer of a++ + ++a + a++ int a=5;c ... rank is higher than second operator binary addition So, first increment is solved from ...
Answered by Riyuuuuu
2
a-=(a--)-(--a)
a=a-((a--)-(--a)) here a--means value will decrease after execution it means first it will remain same. after that it is --a means value will decrease before execution means it will become 4 and 1 more value will be decrease of earlier a--.
a=5-((5)-(3))
a=5-(2)
a=3
I hope it will help you!!!!!
Similar questions