1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
srand(time(NULL));
printf("%d n", rand());
return 0;
}

A. A double in the range 0 to 1
B. A float in the range 0 to 1
C. Compilation Error
D. An integer in the range 0 to RAND_MAX
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs