Explanation
The function sqrt() takes a single argument (in double ) and returns the square root (also in double ). The sqrt() function is defined in math. h header file. To find square root of type int , float or long double , you can explicitly convert the type to double using cast operator.