Floating Point Issues

Q1: 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;
}

A #include<math.h>

B #include<conio.h>

C #include<dos.h>

D #include<stdlib.h>

ANS:A - #include<conio.h>

math.h is a header file in the standard library of C programming language designed for basic mathematical operations. Declaration syntax: double log(double);



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.