Suppose the set
$$S := \left\lbrace x+i \sin \left( \frac{1}{x} \right) \Bigg\vert x \in (0,1]\right\rbrace \subseteq \mathbb{C}. $$
I want to show that $S$ is path-connected but $\overline{S}$ is not path connected.
To show that $S$ is path-connected I have to show that for all points $p,q \in S$ there exists a continuous function $\gamma \colon [0,1] \rightarrow S$ with $\gamma(0)=p$ and $\gamma(1)=q$.
I know that the limit $\lim_{x \to 0} \sin(1/x)$ does not exist. So I am not sure how to calculate $\overline{S}$. My guess is that $\overline{S}=S \cup \left\lbrace 0 \right\rbrace$.
Hint:$f(x)=\sin(\frac {1}{x})$ is continuous on $(0,1]$. So intermediate value theorem.
Write is as $S=\{(x,f(x)):x\in(0,1]\}$. $f$ is continuous , and $S$ is the graph of $f$.