If a function $g$ on $\mathbf{R}$ is everywhere differentiable, why is $f=g'$ the limit of a pointwise convergent sequence of continuous functions $f_n$?
More generally, does this also hold for any function $f$ on $\mathbf{R}$ possessing the intermediate value property?