Home / C Programming / Floating Point Issues :: Discussion

Discussion :: Floating Point Issues

  1. Which statement will you add in the following program to work it correctly?

     #include
     int main()
     {    
         printf("%f\n", log(36.0));       
         return 0;
     } 
    

  2. A.

    #include

    B.

    #include<math.h></p>

    C.

    #include

    D.

    #include

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    math.h is a header file in the standard library of C programming language designed for basic mathematical operations.

    Declaration syntax: double log(double);


Be The First To Comment