Vidyalelo
C Programming · Q251

File Input Output

Programming · C Programming · question 251

Q251

What will be the output of the following C code? #include #include int main() printf("%d ", rand() % 1000); return 0;

A.
Compile time error
B.
An integer between 0-1000
C.
An integer between 0-999 including 0 and 999
Answer
D.
An integer between 0-1000 including 1000

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board