if a=5,b=5 then find the result of- i)(a++)+(b++) and ii)(++a)+(++b)
Answers
Answered by
2
Answer:-
Given,
a=5 and b=5
a++ + b++
=5+5
=10
Now,
a=6,b=6(post increment)
++a + ++b
=6+6(pre increment)
=12
Answered by
1
Answer:
(i) 10
(ii) 12
Explanation:
As, a = b = 5,
(i) a++ + b++
> 5 + 5
> 10
(ii) ++a + ++b
> 6 + 6
> 12
Similar questions