Suppose that $f$ is a continuous additive function on $\mathbb{R}$ and $f(1) = c$. Show that $f(x) = cx$.
I have an attempt at this, but the reason I am asking about it is because I did not use the hint. The hint was to first show this for rationals, and then extend it to the rest of $\mathbb{R}$. I feel I don't need this.
Let $x$ be fixed. Then, since $f$ is additive,
$f(x) = f(x - 1) + f(1) = f(x - 1) + c = f(x - 2) + f(1) + c = f(x - 2) + 2c = \dots f(x - (x - 1)) + (x-1)c$
$= f(1) + (x-1)c = c + (x-1)c = cx$
Since $x$ was fixed, I can continue the process all the way up to $x$. At the same time, $x$ was arbitrary, so this holds for all $x$.
Now clearly the same thing could be done with a rational, but I'm struggling to see why the hint was given. What am I missing here? Thanks in advance!