Let $f\colon \mathbb{R} \mapsto \mathbb{R}$ be a function with the property that the image of every connected set is connected. Is $f$ necessarily continuous?
I've recently learned the definition of connected set and i'm still not totally confortable with it. I thought about the function $f(x)=\sin(1/x)$ for all real non zero $x$ and $f(0)=0$ (obviously discontinuous) for a counterexample but i'm not certain that the image of every connected set is connected...
Thank you in advance for your help!