Question 14.2

I'm trying to take some square roots, but I'm getting crazy numbers.


Make sure that you have #included <math.h>, and correctly declared other functions returning double. (Another library routine to be careful with is atof, which is declared in <stdlib.h>.) See also question 14.3.

References: CT&P Sec. 4.5 pp. 65-6


Read sequentially: prev next up top


This page by Steve Summit // Copyright 1995 // mail feedback