I'll state a question from my textbook below:
Given $f(x) = \frac 1 {x-1}$. Find the points of discontinuity of the composite function $y = f[f(x)]$.
Clearly, $f(x)$ is not defined at $x=1$. But that is not the case with $y = \frac {x-1}{2-x}$. Calculating the limit and the value of $y$ at $x=1$ we even find that it is continuous at this point. The graph of $y$ gives the same idea.
But my textbook says that it is discontinuous at $x=1$. I know this is because the continuity of the composite function $f\circ g$ at $c$ requires the continuity of $g$ at $c$. That is exactly what I can't understand. Why? I don't understand what does $f\circ g$ have to do with the continuity of $g$ at any point, say $c$? It only needs $g$ to be defined at $c$, right? Do you have an example that illustrates the importance of continuity of a function $g$ at $c$ for the continuity of the composite function $f\circ g$ at $c$?
