Syntax
#include <stdlib.h>
div_t *div(int number, int denom);
Arguments
number number to be divided
denom denominator (the number to divide with)
Return Value
The div_t type structure that consists of the quotient and the reminder
Description
It divides number by denom, and returns a div_t structure that consists of the quotient and the reminder.