Let $f$ be a function defined by
$$f = \begin{cases} x && \text {if $x$ is irrational} \\0 && \text{if } x=0 \\p\sin \frac{p}{q} && \text{if } x \neq 0 \text{ is rational and } x= \frac{p}{q} \text{ is in lowest terms} \end{cases}$$
My thinking is that $f$ will be continuous only where $p\sin \frac{p}{q}$ is irrational, but I'm not sure what so say from there. Any suggestions?