Let $f_n:[0,1]\rightarrow \mathbb R$ be a sequence of continuous functions converging pointwise, i.e. such that $\forall x\in [0,1]$, the sequence $(f_n(x))_{n\in \mathbb N}$ converges. We set $f(x)=\lim_nf_n(x)$.
Of course the function $f$ will fail in general to be continuous, due to the weakness of the pointwise convergence. I guess that it is possible to find an example of a sequence $f_n$ as above such that $f$ is discontinuous on a dense subset: is there a simple example? Is it possible for $f$ to be discontinuous everywhere?