Vidyalelo
Computer Science · Q75

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 75

Q75

Which of the following statements uses the computer's clock to initialize the random number generator?

A.
srand(time);
B.
srand(time(NULL));
Answer
C.
time(srand);
D.
time(srand(NULL));

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board