How discontinuous can the limit function be? While I was reading an article on Wikipedia which deals with pointwise convergence of a sequence of functions I asked myself how bad can the limit function be? When I say bad  I mean how discontinuous it can be?
So I have these two questions:
1) Does there exist a sequence of continuous functions $f_n$ defined on the closed (or, if you like you can take open) interval $[a,b]$ (which has finite length) which converges pointwise to the limit function $f$ such that the limit function $f$ has infinite number of discontinuities?
2) Does there exist a sequence of continuous functions $f_n$ defined on the closed (or, if you like you can take open) interval $[a,b]$ (which has finite length) which converges pointwise to the limit function $f$ such that the limit function $f$ has infinite number of discontinuities and for every two points $c\in [a,b]$, $d\in [a,b]$ in which $f$ is continuous there exist point $e\in [c,d]$ in which $f$ is discontinuous?
I stumbled upon Egorov´s theorem which says, roughly, that pointwise convergence on some set implies uniform convergence on some smaller set and I know that uniform convergence on some set implies continuity of the limit function on that set but I do not know can these two questions be resolved only with Egorov´s theorem or with some of its modifications, so if someone can help me or point me in the right direction that would be nice.

You can quite easily construct a concrete example exhibiting behaviour "2)": 
We will construct a sequence of functions whose graphs consist of spikes converging pointwise to Thomae's function
$f_1$ will have a single spike of width $4^{-1}$ around $\tfrac12$ and height $\tfrac12$.
$f_2$ starts as $f_1$ except we narrow its spike to $4^{-2}$ and then we add two spikes of the same width at $\tfrac13$ and $\tfrac23$ each of height $\tfrac13$.
For $f_3$ we again narrow the spikes to $4^{-3}$ and then we add spikes at $\tfrac14$ and $\tfrac34$ of height $\tfrac14$.
Of course writing this out in full detail is mindnumbling crazy and boring, and obviously also missing the point. 
What should hopefully be clear is that the $f_n$ will form a sequence converging pointwise to Thomae's function showing that you indeed can have functions as discontinuous as you desired. 
But this is nowhere near as bad as possible. You can have limit functions which are discontinuous on a set of measure $1$, though it must still be comeagre per the Baire–Osgood theorem (see my comment below the question for links)
