C-Library-Functions


  1. What is the syntax of ungetc()?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    int ungetc(int c, FILE *fp)


  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    int main()
    {
    unsigned int num = 15;
    printf("%f\n", fabs(num));
    return 0;
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    15.000000



  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <math.h>
    int main()
    {
    int n = 90;
    printf("%f\n", sin(n));
    return 0;
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    0.893997


  1. function fabs defined math.h header file takes argument of type integer.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    False



  1. ungetc() may be used with ________











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    All of above