Let $X$ be Hausdorff and assume $Y=X \cup\{\infty\}$ is the one-point compactification of $X$.
(a) Show that if $X$ is not compact, then $\mathrm{Cl}(X)=Y$.
(b) Show that if $X$ is compact, then $\mathrm{Cl}(X)=X$, and $Y$ is disconnected with $(\infty)$ being one of its components. (This shows that not much interesting happens when taking the one-point compactification of a space that is already compact.)