Vidyalelo
C++ Programming · Q297

C++ miscellaneous

Programming · C++ Programming · question 297

Q297

What will be the output of the following C++ code? #include #include using namespace std; int main() int ran = rand(); cout << ran << endl;

A.
Any number
B.
89
C.
0 to RAND_MAX
Answer
D.
79

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board