Vidyalelo
C Programming · Q102

File Input Output

Programming · C Programming · question 102

Q102

Which is the best way to generate numbers between 0 to 99?

A.
rand()-100
B.
rand()%100
Answer
C.
rand(100)
D.
srand(100)

Answer: Option B

Solution

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