Examveda

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

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


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions