Output of the following program: #include
<stdio.h> #include <stdlib.h> int main() {
printf("%d\n", rand() % 1000); return o; }
Compile time error
O An integer between 0-1000
O
An integer between 0-999 including
0 and 999
O
An integer between 0-1000 including
1000
Answers
Answered by
0
Answer:
An integer between 0-999 including 0 and 999.
Explanation:
: rand() generate random number and (rand() % 1000) shorten it to range [0, 999]
Similar questions
Math,
2 months ago
India Languages,
2 months ago
Social Sciences,
5 months ago
Math,
5 months ago
History,
11 months ago
Chemistry,
11 months ago