C examples for stdlib.h:lldiv_t
data type
<cstdlib> <stdlib.h>
Structure returned by lldiv
typedef struct { long long quot; long long rem; } lldiv_t;
Value | Description |
---|---|
quot | the quotient of the integral division operation performed by lldiv |
rem | the remainder of the integral division operation performed by lldiv |
#include <stdio.h> #include <stdlib.h> int main ()//from ww w . ja v a2s . com { lldiv_t res; res = lldiv (12331558149LL,3600LL); printf ("%lld R %lld .\n", res.quot, res.rem); return 0; }