Computer Science, asked by meghamulge67, 3 months ago

What will be printed when the following program is run?
public class Print {
public static void main(String[] args) {
int i = 0;
addTwo(i++);
System.out.println(i);
}
static void addTwo(int i) {
i += 2;
}
}​

Answers

Answered by rudransh912010
0

Answer:

  1. the printed statement is wrong

Similar questions