Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    printf("%d\n", srand(9000));
    return 0;
}

A. Compile time error

B. An integer in the range 0 to 9000

C. A float in the range 0 to 1

D. A double in the range 0 to 9000

Answer: Option A


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output