1.

Which is a constant defined in header file?(a) RAND_MAX(b) Rand(c) Srand(d) BlitzThis question was addressed to me in homework.Asked question is from Random Numbers topic in section Strings, Streams & Numerics in C++ of C++

Answer»

The correct ANSWER is (a) RAND_MAX

Best EXPLANATION: RAND_MAX is a constant defined in for deciding the maximum RANDOM number that can be PRODUCED.



Discussion

No Comment Found

Related InterviewSolutions