Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Which of the following statements uses the computer's clock to initialize the random number generator? | |
A. | srand(time); [Wrong Answer] |
B. | srand(time(NULL)); [Correct Answer] |
C. | time(srand); [Wrong Answer] |
D. | time(srand(NULL)); [Wrong Answer] |