Home » C Programming » C-Library-Functions » Question
  1. Which is the best way to generate numbers between 0 to 99?
    1. srand(100)
    2. rand(100)
    3. rand()-100
    4. rand()%100
    5. None of these
Correct Option: D

rand()%100



Your comments will be displayed only after manual approval.