Computer Science, asked by pinky137, 1 year ago

Give the output of the following expression :-
a+ = a + + + + + a + - - a + a - - ;
when a = 7
Explain with logic

Answers

Answered by GauravJMaurya
1
the answer is 19 given a = 5; first a++ gives 5 but increment by 1 after accessing variable 'a' then, ++a give 7 since 'a' is 6 after first accesslast, a++ give another 7 because it does not increment not until 'a' access do , c = 5 + 7 + 7 = 19.
Similar questions