Give the output of the following expression a=5 . a++ + ++a +--a+ a --;
Answers
Answered by
4
Answer:
a++ + ++a +--a+ a --;
5+7+6+6; //now a's value is 5
24
Answered by
2
Question ?
- Give the output of the following expression.
Solution:-
Given,
a=5
a++ + ++a + --a + a--
=5+7+6+6
=12+12
=24.
Hence, the final value of a after execution is 24.
Output:-
24
Similar questions
Political Science,
3 months ago
Social Sciences,
3 months ago
Math,
6 months ago
Math,
6 months ago
Math,
11 months ago
Chemistry,
11 months ago
English,
11 months ago