C Programming MCQ

1:

The library function sqrt operates on a double precision argument. If, i is an integer variable, then which of the following calls would correctly compute sqrt(i)?

A.

sqrt((double)i)

B.

(double)sqrt(i)?

C.

(double)(sqrt(i))

D.

sqrt(i)

 

Answer : A

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.