C# *= Math Operator

amiedd
1,041 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

C# *= Math Operator

The binary multiplication assignment operator. Cospaly, Code and Games - www.amiedd.com

using System;
class MathClass
{
static void Main()
{
int a = 10;
a *= 6;
Console.WriteLine(a);
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

C# *= Math Operator

The binary multiplication assignment operator.

The * operator is predefined for numeric types to do mathmatical multiplication. The *= operator can't be overloaded directly, but user-defined types can overload the * operator

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content