While reading this post, I was a bit confused by the following :
If $X$ is a compact metric space, then by Urysohn's Lemma and Stone-Weierstrass, the continuous functions $C(X)$ on $X$ are separable and hence the result follows as $C_{c}(X) = C(X)$.
I understand the use of Stone-Weierstrass because polynomial with rational coefficient are countable and are dense in polynomials with real coefficients which are dense (by stone-Weierstrass) in $C(X)$ when $X$ is compact. But I don't understand where Urysohn's Lemma comes into play.