|
ldivfunction
<cstdlib> ldiv_t ldiv ( long int numerator, long int denominator ); Integral division Returns the integral quotient and remainder of the division of numerator by denominator as a structure of type ldiv_t, which has two members: quot and rem.Parameters
Return ValueThe result is returned by value in a ldiv_t structure (defined in <cstdlib>), which has two members, in either order:long quot; long rem; Example
Output:
See also
|