Calculates the quotient and remainder of an integer division.
#include <stdlib.h> div_t div ( int numer, int denom);
(IN) Specifies the numerator.
(IN) Specifies the denominator.
Returns a structure of type div_t.
The div_t structure has fields for the quotient and the remainder. It has the following syntax:
typedef struct { int quot; int rem; } div_t;