+ 2
What is the *= operator?
3 odpowiedzi
+ 10
x *= y
is shorter version of
x = x * y
+ 5
int x = 3;
int y = 5;
x *= y;
//is equivalent to
x = x * y;
//Both statements end with x = 15
+ 1
shortened multiplication operator
k*=3; // same as k= k*3;