MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
Which is the best way to generate numbers between...
1.
Which is the best way to generate numbers between 0 to 99?
A.
rand()-100
B.
rand()%100
C.
rand(100)
D.
srand(100)
Answer» B. rand()%100
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The rand command is provided by the __________
What is the default return type of the rand command?
The range of numbers returned by the following code is:
What is the error in the following command?
The linspace command generates pseudorandom numbers.
What is the class of the variable r after the following code is run?
The output of the following code
The randn command generates random numbers by following a _________
For the function call time(), what type of parameter is accepted?
Which among the following is correct function call for rand() and random()?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies