Consider $X=\{f:\mathbb{Q}\rightarrow \mathbb{R}\}$ (set of any functions), with the product topology. Is true that for any $f\in X$, there are $(f_n)_{n\in \mathbb{N}}$ sequence of continuous and unbounded functions such that $f_{n}\rightarrow f$?
I tried to solve that problem using the usual notion of point convergence in $\mathbb{Q}$ and I discovered that is possible for a function with a discrete set of discontinuous points. In this case I construct a sequence with a asymptotic behavior near these points, but my proof was very complicated and I can't find a proof in the general case, which requires the product topology.
Let $(q_n)_{n\in\Bbb N}$ be an enumeration of $\Bbb Q$. For each $n\in\Bbb N$, let $\{r_1,r_2,\ldots,r_n\}$ the set $\{q_1,q_2,\ldots,q_n\}$ , with $r_1<r_2<\cdots<r_n$. Let $f_n\colon\Bbb Q\longrightarrow\Bbb R$ be the function such that:
So, $f_n$ is continuous and unbounded. Furthermore, $f_n(q_k)=f(q_k)$ for each $k\leqslant n$. So, $(f_n)_{n\in\Bbb N}$ converges pointwise to $f$.