-
What is the output of this program?
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout << RAND_MAX << endl;
}
-
- Depends on the compiler
- Compilation Error
- Runtime Error
- Garbage value
- None of these
Correct Option: A
RAND_MAX is a function used by the compiler to create a maximum random number.