A capillary tube of area of cross-section $A$ is dipped in water vertically. The amount of heat evolved as the water rises in the capillary tube up to height $h$ is : (The density of water is $\rho$ )
(a) $\frac{A p g h^{2}}{2}$
(b) $A g h^{2} \rho$
(c) $2 A g h^{\overline{2}} \rho$
(d) none of these