lldiv_t - C stdlib.h

C examples for stdlib.h:lldiv_t

Type

data type

From


<cstdlib>
<stdlib.h>

Description

Structure returned by lldiv

typedef struct {
  long long quot;
  long long rem;
} lldiv_t;

Members

Value Description
quot the quotient of the integral division operation performed by lldiv
rem the remainder of the integral division operation performed by lldiv

Demo Code


#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;
}

Related Tutorials