[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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));
}

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 ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here