Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Floating Point Issues
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>
Show Answer
Correct Answer:
#include<math.h>
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);
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment