What will be the output of the following C++ code?
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
return 0;
}
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
return 0;
}
A. 3.1416
B. -3.1416
C. -3.141600
D. 3.141600
Answer: Option D
Join The Discussion