1.

How many parameters are available in srand function?(a) 1(b) 2(c) 3(d) 4This question was posed to me during an interview.My doubt stems from Random Numbers topic in chapter Strings, Streams & Numerics in C++ of C++

Answer»

The CORRECT answer is (a) 1

The explanation is: There is one parameter available in srand function. That is an INTEGER value to be USED as seed by the pseudo-random number GENERATOR algorithm.



Discussion

No Comment Found

Related InterviewSolutions