What will be the output of the following C code?
double x, deg, rad;
x = 1.0;
val = 180.0 / 3.14;
deg = atan (x) * val;
printf("The arc tangent of %lf is %lf degrees", x, deg);
double x, deg, rad;
x = 1.0;
val = 180.0 / 3.14;
deg = atan (x) * val;
printf("The arc tangent of %lf is %lf degrees", x, deg);A. The arc tangent of 1.000000 is 45.000000 degrees
B. The arc tangent of 1.000 is 45.000degrees
C. The arc tangent of 1 is 45 degrees
D. The arc tangent of 1.0000is 45.0000degrees
Answer: Option A

Join The Discussion