[Compound Operators]
描述
This is a convenient shorthand to perform multiplication of a variable with another constant or variable.
語法
x *= y; // equivalent to the expression x = x * y;
參數
X: variable. Allowed data types: int, float, double, byte, short, long.y: variable or constant. Allowed data types: int, float, double, byte, short, long.
範例程式碼
x = 2; x *= 2; // x now contains 4
參考
- [程式語法] Normal Multiplication
語法參考主頁面
86Duino 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。



