C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
18 / 90
What is the output of the following 'C' program ?
#include<stdio.h>
#include<math.h>
void main()
{
printf("%f",sqrt (36.0));
}
#include<stdio.h>
#include<math.h>
void main()
{
printf("%f",sqrt (36.0));
}
A6
B6
C6
DSome absurd result
Answer: Option (Login/Signup)
Show Explanation
Here, the argument is 36.0, so sqrt() function returns 6.000000, as the return type we want is in float.
Asked In ::
TRICK
The sqrt() function returns the square root of a given argument.
Here, the argument is 36.0, so sqrt() function returns 6.000000, as the return type we want is in float.
Read Full Answer
Report Error
Please Login First Click Here