Ngô Thảo Trúc
Member
What will be the output of the following C++ code?
A. 3.1416
B. -3.1416
C. -3.141600
D. 3.141600
Code:
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("The value of -3.1416 is %lf\n", fabs (-3.1416));
return 0;
}
B. -3.1416
C. -3.141600
D. 3.141600