Evaluate the following java Expression
int a=5,b=9,c;
c=a++ + b++ + a%b
System.out.print(a+
Answers
Answered by
0
Output
6 10 20
Explanation:
c=5+9+6%10 (now,a=6 and b=10)
c=5+9+6 (since, 6%10=6)
c=14+6
c=20
Hence, a=6,b=10 and c=20
Similar questions
Science,
5 months ago
Computer Science,
5 months ago
Math,
10 months ago
English,
10 months ago
Math,
1 year ago