You are not logged in.

#1 2017-07-31 06:50:37

Ibraheem
Webmaster
From: Capital
Registered: 2012-03-16
Posts: 22,981
Website

C / C++ Programming Language Quiz Question.

Programming Languages Quizzes C / C++ Programming Language

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

Option A):
srand(time(NULL));
Option B):
time(srand(NULL));
Option C):
srand(time);
Option D):
time(srand);

Correct Answer is Option A):
srand(time(NULL));

2017-07-31 06:50:37

Advertisement
Ads By Google

Re: C / C++ Programming Language Quiz Question.



Board footer