Tutorialspoint

rand() in C language

#include <stdio.h>
#include<stdlib.h>
int main() {
   printf("%d\n", rand());
   printf("%d", rand());
   return 0;
}

Advertisements
Loading...