The library function sqrt( ) operates on a double precision argument. If, i is an integer variable, which one of the following calls would correctly compute sqrt(?
A. sqrt((double)i)
B. (double) sqrt(i)
C. (double) (sqrt(i))
D. sqrt(i)
Answer:A
The library function sqrt( ) operates on a double precision argument. If, i is an integer variable, which one of the following calls would correctly compute sqrt(?
A. sqrt((double)i) B. (double) sqrt(i) C. (double) (sqrt(i)) D. sqrt(i)