give the output for a: int a=7; a+ = a++ + ++a + --a + a--;
Answers
Answered by
2
Question:-
Write the output of the following code snippet.
Solution:-
Given,
int a=7;
a+ = a++ + ++a + --a + a--;
Or,
a=7+(7+9+8+8)
Or,
a=14+16+9
Or,
a=39
Hence, the value of a is 39.
Output:-
39
Similar questions