[example: A Pointwise Limit That Breaks Continuity]
Here $C([0,1];\mathbb{R})$ denotes the set of continuous functions from $[0,1]$ to $\mathbb{R}$. For each $n \in \mathbb{N}$, define $f_n\in C([0,1];\mathbb{R})$ by
\begin{align*}
f_n(x)=x^n,\qquad 0\le x\le 1.
\end{align*}
We compute the pointwise limit. If $x=0$, then $f_n(0)=0^n=0$ for every $n$, so $f_n(0)\to 0$. If $0<x<1$, write $x=1/(1+t)$ with $t=(1-x)/x>0$. For every $n\in\mathbb{N}$, Bernoulli's inequality gives $(1+t)^n\ge 1+nt$, hence
\begin{align*}
0\le x^n=\frac{1}{(1+t)^n}\le \frac{1}{1+nt}.
\end{align*}
Given $\varepsilon>0$, choose $N\in\mathbb{N}$ with $N>(1/\varepsilon-1)/t$ when $\varepsilon<1$, and take $N=1$ when $\varepsilon\ge 1$. Then for every $n\ge N$,
\begin{align*}
0\le x^n\le \frac{1}{1+nt}<\varepsilon.
\end{align*}
Thus $x^n\to 0$ for every $0\le x<1$. At the endpoint,
\begin{align*}
f_n(1)=1^n=1
\end{align*}
for every $n$, so $f_n(1)\to 1$.
Therefore the pointwise limit $f:[0,1]\to\mathbb{R}$ is
\begin{align*}
f(x)=0\text{ for }0\le x<1,\qquad f(1)=1.
\end{align*}
This limit is not continuous at $1$: for $\varepsilon=1/2$, every $\delta>0$ admits a point $y\in[0,1)$ with $|y-1|<\delta$, for instance $y=1-\min(\delta/2,1/2)$, and then
\begin{align*}
|f(y)-f(1)|=|0-1|=1>\frac12.
\end{align*}
So each $f_n$ is continuous, but the pointwise limit is discontinuous; pointwise convergence controls each fixed input separately and does not preserve continuity.
[/example]