-
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 double in the range 0 to 1
- A float in the range 0 to 1
- Compilation Error
- An integer in the range 0 to RAND_MAX
- None of these
Correct Option: D
An integer in the range 0 to RAND_MAX