adplus-dvertising
frame-decoration

Question

What is the output of this 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

Posted under C Programming

Answer: (a).Compile time error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this C code?