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 : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |