Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be infinitely differentiable not identically zero. Let $S_f=\{ x : f^{(n)}(x)=0 \ \forall n\in\mathbb{N} \}$. $S_f$ can be non empty e.g. $e^{-1/x^2}$-like examples. In fact, $S_f$ can contain an interval (integrate the previous example). Clearly $S$ is closed. Is there an example of a closed proper subset $K$ of $\mathbb{R}$ such that $K$ is not $S_f$ for any $f$?
We can combine my two examples to make a lot of closed sets, but its not so obvious how to make sure a function with $S_f$ equal to the cantor set.
If such a $K$ exists, is there another way to characterise which sets $S_f$ can be?