-First we write $C( U; \mathbb{R})$ the set of all continuous functions from $U \subseteq \mathbb{R}^d $ to $\mathbb{R}$. In order to prove such a claim we are going to prove that first every $n \in \mathbb{N}$ we choosed the dimension of $C( U; \mathbb{R})$ is superior to $n$. That means that $C( U; \mathbb{R})$ is of infinite dimension.
1- Let choose a specific $n \in \mathbb{N}$. Then we choose $n$ different poionts: $a_1,a_2,...,a_n \in U$.
For exemple $n = 2$
2- Now let define a sequence of balls from $a_1,a_2,...,a_n$ as follow. For $1 \leq k \leq n $ we define the $k-$th ball: $B_k(a_k, r_k)$= a ball of center $a_k$ and of radius $r_k$ small enough such that none of the ball intersect with other balls. It means that the radius is small enough such that $\forall i \neq k \Rightarrow B_k(a_k, r_k) \cap B_i(a_i, r_i) = \varnothing $.
3- Then we choose $n$ different continuous functions:$f_1,f_2,...,f_n$ satisfying $f_k(x)=0 \Leftrightarrow x \notin B_k(a_k, r_k) $. In words it means that the function $f_k(x)$ is equal to $0$ on every $x$ that is not in the ball $B_k(a_k;r_k)$ and is strictly different from zero in every $x$ that is in the ball $B_k(a_k;r_k)$.
For exemple you can choose the function $f_k(x)= 1-\frac{|| x-a_k ||}{r_k}$ iff $x \in B_k(a_k, r_k)$ and $f_k(x) = 0$ iff $x \notin B_k(a_k, r_k)$ or a "bump function".
4- Now we get that all the functions $f_1,f_2,...,f_n$ are linearly independent, aka none of them can be obtained via a linear combination of the others.
These functions are linearly independent because the equation $c_1f_1(x)+c_2f_2(x)+...+c_nf_n(x)=0$ as for unique solution $c_1=c_2=...=c_n=0$.
Indeed if it is not the case that will mean that it exists at least one $f_{i'}(x)$ that can be expressed as a combinaison of the others. For exemple $i'=1 \Rightarrow f_1(x)=\sum_{i=2}^n \alpha_i f_i(x)$ s.t.not all the $(\alpha_i)_{2 \leq i \leq n} $ are equal to zero. But this cannot be true because on one side for any $x \in B_1(a_1;r_1) \Rightarrow f_1(x) \neq 0$ but on the other side by definition $\forall x \in B_1(a_1;r_1) \Rightarrow f_i(x)=0, i \neq 1 \Rightarrow \sum_{i=2}^n \alpha_i f_i(x) = 0$ and this is not possible.
5-In conclusion we can say that for any finite integer number $n$ we can chose to be the dimension of $C( U; \mathbb{R})$ there will always be a sequence of $n$ function in $C( U; \mathbb{R})$ that are all linearly independent from the others.
Thus the dimension of $C( U; \mathbb{R})$ cannot be finite.
Q.E.D.