Vidyalelo
C Programming · Q291

File Input Output

Programming · C Programming · question 291

Q291

What will be the output of the following C code? #include int main() srand(time(NULL)); 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