

MCQOPTIONS
Saved Bookmarks
1. |
Which is the correct way to generate numbers between minimum and maximum(inclusive)? |
A. | minimum + (rand() % (maximum – minimum)); |
B. | minimum + (rand() % (maximum – minimum + 1)); |
C. | minimum * (rand() % (maximum – minimum)) |
D. | minimum – (rand() % (maximum + minimum)); |
Answer» C. minimum * (rand() % (maximum ‚Äö√Ñ√∂‚àö√ë‚àö¬® minimum)) | |