Computer Science, asked by ysandeepreddy8897, 21 days ago

Predict the output. class Main { public static void main(String[] args) { int a = 8; System.out.println(a++ * 3); } }​

Answers

Answered by pranjalvktsrm
5

Answer:

36

Explanation:

a++ is post increment, therefore it will get changed in the memory location but while evaluating the expression "a" will remain 8.

Similar questions