Solved

Which of the Following Statements Generates a Random Number Between

Question 22

Multiple Choice

Which of the following statements generates a random number between 0 and 50?


A) srand(time(0) ) ;
Num = rand() % 50;
B) srand(time(10) ) ;
Num = rand() /50;
C) srand(time(0) ) ;
Num = rand() 50;
D) srand(time(10) ) ;
Num = rand() % 50;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions