Structure returned by div
Structure used to represent the value of an integral division performed by div.
It has two members of the same type, defined in either order as:
int quot;
int rem;
Members
- quot
- Represents the quotient of the integral division operation performed by div, which is the integer of lesser magnitude that is neares to the algebraic quotient.
- rem
- Represents the remainder of the integral division operation performed by div, which is the integer resulting from subtracting quot to the numerator of the operation.
See also
ldiv_t | Structure returned by div and ldiv (type) |
div | Integral division (function) |