1.

In the following C program everytime program is run different numbers are generated.
#include <stdio.h>
int main()
{
srand(time(NULL));
printf("%d n", rand());
return 0;
}

A. Depends on the platform
B. Depends on the compiler
C. True
D. False
E. None of these
Answer» D. False


Discussion

No Comment Found

Related MCQs