C-Library-Functions


  1. What is function srand(unsigned)?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Sets the seed for rand


  1. Which among the following mathematical function do not have a “double” return-type?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    both ceil(x); and floor(x);



  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    void main()
    {
    int n = sqrt(16);
    printf("%d\n", n);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    4


  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    void main()
    {
    int n = fabs(-65);
    printf("%d\n", n);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    65



  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    void main()
    {
    int num = pow(4, 2);
    printf("%d\n", num);
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    16