Prove that there cannot exist any non constant continuous function $f: \mathbb{R} \rightarrow \mathbb{Q}$.
If there exist such an continuous function , it will map interval to a connected subset of $\mathbb{Q}$. I am unable to imagine connected subset of $\mathbb{Q}$ to for proving the above statement. Can anyone help me in this? Thanks.