Which among the following is correct function call for rand() and random()?

Category: QuestionsWhich among the following is correct function call for rand() and random()?
Editor">Editor Staff asked 11 months ago

Which among the following is correct function call for rand() and random()?
 
(a) rand() and random();
 
(b) rand() and random(1);
 
(c) rand(1) and random(1);
 
(d) rand(1) and random();
 
I have been asked this question at a job interview.
 
This interesting question is from Random Number Generation in portion Input and Output in C of C
NCERT Solutions for Subject Computer science (C Programming) Select the correct answer from above options 
Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answers
Editor">Editor Staff answered 11 months ago

Right answer is (a) rand() and random();
 
Best explanation: None.