Evaluate c in the given java expression if a = 5, b = 8, [2]
int c= ++a + b++ + a+ --b+a++
Answers
Answered by
2
Answer:-
Given,
a=5
b=8
c=++a + b++ + a + --b + a++
Or,
c=6+8+6+8+6
Or,
c=18+16
Or,
c=34
Now,
a=7
b=8
Result:-
c=34
a=7
b=8
Similar questions
Sociology,
3 months ago
Science,
3 months ago
Political Science,
3 months ago
Computer Science,
6 months ago
Math,
6 months ago
English,
10 months ago
Math,
10 months ago