Vidyalelo
C Programming · Q94

File Input Output

Programming · C Programming · question 94

Q94

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

A.
Compile time error
B.
An integer in the range 0 to RAND_MAX
Answer
C.
A double in the range 0 to 1
D.
A float in the range 0 to 1

Answer: Option B

Solution

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