#include <stdlib.h>
lldiv_t lldiv (long long number, long long denom);
The lldiv() function calculates the quotient and remainder of the division of numerator by denominator.
The lldiv() function returns a structure of type lldiv_t, containing both the quotient long long quot and the remainder long long rem.
If the value cannot be represented, the returned value is undefined. If denominator is 0, a divide by 0 exception is raised.