Calculate the quotient and remainder.
ldiv_t ldiv (long n, long d);
Required Header |
<stdlib.h> |
Return Value
This function returns a structure containing the quotient and remainder long integer values.
Parameters
n
Number
d
Denominator
Remarks
The ldiv function returns a structure of the form:
typedef struct {
long quot;
long rem;
} ldiv_t;
See Also div