The division operator ( / ) causes the first operand to be divided by the second.
Example
In the following example, nNum1
is divided by nNum2
giving nResult
:
// Example of the division operator
int nNum1=10, nNum2=2, nResult;
nResult = nNum1 / nNum2; // nResult is now 5