Vidyalelo
Data Structure · Q182

Miscellaneous on Data Structures

Programming · Data Structure · question 182

Q182

Predict the output of the following code. #include int main() srand(0); printf("%d ", rand()); return 0;

A.
compilation error
B.
random number between 0 to RAND_MAX
Answer
C.
cannot be predicted
D.
0

Answer: Option B

Solution

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