RAND_MAX - C stdlib.h

C examples for stdlib.h:RAND_MAX

type

macro

From


<cstdlib>
<stdlib.h>

Description

Maximum value returned by rand

Demo Code

#include <stdio.h>
#include <stdlib.h>

int main()// w  w w.  j  a  v a2s.co  m
{
  printf("%d",RAND_MAX);

  return 0;
}

Related Tutorials