Home » C Programming » C-Library-Functions » Question
  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. Compilation Error
    2. Undefined behaviour
    3. 15
    4. 15.000000
    5. None of these
Correct Option: D

15.000000



Your comments will be displayed only after manual approval.