If x is negative, the sqrt function will return a domain error. Web the sqrt () function is defined in math.h header file. Web the sqrt function returns the square root of x. #include<cmath.<strong>h</strong>> double sqrt (double x ); To find the square root of int, float or long double data types, you can. Float sqrt (float x ); Long double sqrt (long double x );.
Float sqrt (float x ); Web the sqrt function returns the square root of x. Float sqrt (float x ); #include<cmath.<strong>h</strong>> double sqrt (double x ); To find the square root of int, float or long double data types, you can. Long double sqrt (long double x );. Web the sqrt () function is defined in math.h header file. If x is negative, the sqrt function will return a domain error.