Let X be a compact metric space. A closed subspace

Let X be a compact metric space. A closed subspace of C(X) is compact if and only if it is bounded and equicontinuous.