adplus-dvertising
frame-decoration

Question

In the below program everytime program is run different numbers are generated.
#include <stdio.h>
    #include <stdlib.h>
    int main()
    {
        printf("%d\n", rand());
        return 0;
    }

a.

True

b.

False

c.

Depends on the platform

d.

Depends on the compiler

Posted under C Programming

Answer: (b).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In the below program everytime program is run different numbers are generated.