C Programming - Floating Point Issues - Discussion

Discussion Forum : Floating Point Issues - General Questions (Q.No. 5)
5.
Which statement will you add in the following program to work it correctly?
#include<stdio.h>
int main()
{
    printf("%f\n", log(36.0));
    return 0;
}
#include<conio.h>
#include<math.h>
#include<stdlib.h>
#include<dos.h>
Answer: Option
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);

Discussion:
14 comments Page 2 of 2.

Deepa said:   1 decade ago
What are the different b/w stdio, conio, stdlib? could any one?

Suyoj said:   1 decade ago
What is the difference between getch and getche ?

Hajmaldeen said:   1 decade ago
How to run this program to unix?

Well wisher said:   1 decade ago
Kumar is correct.


Post your comments here:

Your comments will be displayed after verification.