Thursday 2 December 2010

Which of the following header file defines the rand() function?

► iostream.h
► conio.h
stdlib.h
► stdio.h
The function is rand() and is in the standard library. To access this function, we need to include
<stdlib.h> library in our program. This function will return a random number. The number can
be between 0 and 32767

No comments:

Post a Comment