Q997
Predict the output of the following code. #include int main() srand(0); printf("%d ", rand()%50); return 0;
A.
compilation error
B.
random number between 0 to 50 (both inclusive)
C.
random number between 0 to 51 (both inclusive)
D.
random number between 0 to 49 (both inclusive)
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board