This page is also available in 3 other languages

*=

[Compound Operators]

설명

이것은 한 변수와 다른 상수 또는 변수에 곱셈을 하는 편리한 단축이다.

문법

x *= y; // x = x * y; 와 같다.

매개변수

x: 변수. 허용되는 자료 형: int, float, double, byte, short, long
y: 변수 또는 상수. 허용되는 자료 형: int, float, double, byte, short, long

예제 코드

x = 2;
x *= 2; // x 는 4

더보기