Computer Science, asked by roshanlenka421, 10 months ago

Evaluate the following java Expression

int a=5,b=9,c;

c=a++ + b++ + a%b

System.out.print(a+​

Answers

Answered by CallmeVicky
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