Extended data:
The input parameter of sqrt () function must be of type double, and the function return type is of type double, so you must use a variable of type double to receive the return value. When the input data is not of double type, you should use forced type conversion to convert it to double type.
When a function receives a reference value, it should use the. %lf? Otherwise, there will be data errors in input or output, especially in data input, which will directly lead to data errors. This is mainly due to the different ways of storing and reading different types of data.