Everything

div


Carries out division of int type integers and obtains the quotient and remainder.

[Format]

#include <stdlib.h>

div_t div (long numer, long denom);

[Parameters]

numer Dividend

denom Divisor

[Return values]

Quotient and remainder of division of numer by denom.