Computer Science, asked by vineeth9838, 5 months ago

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 mreema2002
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