So, I'm stuck with this proof for a homework assignment, and don't know where to start - my first instinct is to go with a proof by squeeze theorem. Would that work here though? I'm just not sure right now. Here's the question:
Suppose $g$ and $h$ are both defined as being in the neighborhood of $c$ and
$$\lim_{x\to c}g(x)=L=\lim_{x\to c}h(x)\;.$$
Define $f$ by
$$f(x) =\begin{cases} h(x),&\text{if }x\in\Bbb Q\\ g(x),&\text{if }x\in\Bbb R - \Bbb Q\;. \end{cases}$$
Show that $\lim\limits_{x\to c} f(x) = L$.