A constant function is exactly that - constant - meaning it exhibits no change whatsoever with respect to any change in its input. If [tex]f(x) = 1[/tex], then it doesn't matter what value of [tex]x[/tex] I give you, the value of [tex]f(x)[/tex] will always be nothing other than 1.
That the derivative of such a function is zero follows immediately from the definition of the derivative. If [tex]c\in\Bbb R[/tex] and [tex]f(x) = c[/tex], then
[tex]f'(x) = \displaystyle \lim_{h\to0}\frac{f(x+h)-f(x)}h = \lim_{h\to0} \frac{1 - 1}h = \lim_{h\to0}\frac0h = 0[/tex]