What will be the output of the following C code? [code] #include <stdio.h> #include <stdlib.h> int main() { srand(9000);

What will be the output of the following C code?
Code:
    #include <stdio.h>
    #include <stdlib.h>
    int main()
    {
        srand(9000);
        printf("%d\n", rand());
        return 0;
    }
A. Compile time error
B. An integer in the range 0 to RAND_MAX
C. A double in the range 0 to 1
D. A float in the range 0 to 1
 

Tìm kiếm

Back
Top