Multiplication Operator: *
The multiplication operator (*) causes its two operands to be multiplied.
Note Since the conversions performed by the multiplicative operators do not provide for overflow or underflow conditions, information may be lost if the result of a multiplicative operation cannot be represented in the type of the operands after conversion.
Example
In the following example, nNum1
is multiplied by nNum2
giving nResult
:
// Example of the multiplication operator
int nNum1=3, nNum2=4, nResult;
nResult = nNum1 * nNum2; // nResult is now 12