1.

What should be the return type of rand() function?(a) int(b) float(c) long(d) doubleI got this question in homework.I need to ask this question from Number Theory topic in portion Number Theory of Data Structures & Algorithms II

Answer»

The correct OPTION is (a) int

Easiest explanation - The return TYPE of RAND () is int. It can generate random NUMBERS from 0 to RAND_MAX.



Discussion

No Comment Found

Related InterviewSolutions