Home » C Programming » Data Types » Question
  1. Which of the following is the correct output for the program given below?
    #include <stdio.h>
    #include <math.h>
    int main ( )
    {
    printf ( "%f\n" ,sqrt (49.0));
    return 0 ;
    }
    1. 7.0
    2. 7
    3. 7.000000
    4. Error : Prototype of sqrt ( ) not found
Correct Option: C

It prints the square root of 49 in the float format(i.e 7.000000).



Your comments will be displayed only after manual approval.