Let g(x) be:
This is discontinuous because for any c∈R we can construct a sequence of rational numbers (qn)⊆Q where qn→c and also (xn)⊆(Q)c where xn→c. Notice that:
These two sequences converge to c but converge to different values, so then the function cannot have a limit at c and thus isn't continuous there.