Home » C Programming » C-Library-Functions » Question
  1. In the following C program everytime program is run different numbers are generated.
    #include <stdio.h>
    int main()
    {
    srand(time(NULL));
    printf("%d\n", rand());
    return 0;
    }
    1. Depends on the platform
    2. Depends on the compiler
    3. True
    4. False
    5. None of these
Correct Option: C

True



Your comments will be displayed only after manual approval.