which of the following are functions are continuous on $f:\mathbb{C}\rightarrow \mathbb{C}$
1.$f(z) = \left\{ \begin{array}{rcl}0 & \mbox{if} & z=0\;or\;|z| \;is \;irrational \\ \frac{1}{q} & \mbox{if} & |z|=\frac{p}{q}\in \mathbb{Q}\backslash\{0\}(written\;in\;the\;lowest\;terms) \end{array}\right.$
2.$f(z) = \left\{ \begin{array}{rcl}0 & \mbox{if} & z=0\;\\ \sin \phi & \mbox{if} & z=re^{i\phi}\neq0 \end{array}\right.$
for first i think f is continuous at |z| is irrational but i am not sure for second function i dont have idea