포금이 2024. 6. 15. 13:40

int a=5;

System.out.println(a++);  --. 출력 : 5 (이후 +1됨 내부에서)

int b= ++a; // 6 + 1

System.out.println(b); --출력 : 7