1.

Which of the following snippet will effectively generate random numbers?(a) rand();(b) rand(10);(c) rand(time(NULL));(d) all of the mentionedI got this question in an interview for internship.Enquiry is from Random Number Generation in division Input and Output in C of C

Answer»

Right ANSWER is (a) rand();

The best I can EXPLAIN: NONE.



Discussion

No Comment Found

Related InterviewSolutions