Explanation : The sqrt function is declared in the math.h header and calculates the square root of its argument. The standard sqrt function accepts a double and returns a double. When an integer argument is supplied, it is converted to double. A call such as sqrt((double)i) explicitly converts the integer variable i before calculating its square root.