type
<cstdlib>

lldiv_t

Structure returned by lldiv
Structure to represent the result value of an integral division performed by function lldiv (and, in C++, possibly also by div).

It has two data members of type long long int: quot and rem, defined in either order. A possible definition could be:
1
2
3
4
typedef struct {
  long long quot;
  long long rem;
} lldiv_t;

Members

quot
Represents the quotient of the integral division operation performed by lldiv, which is the integer of lesser magnitude that is nearest to the algebraic quotient.
rem
Represents the remainder of the integral division operation performed by lldiv, which is the integer resulting from subtracting quot to the numerator of the operation.

See also