1

1

**gof is only defined when range of f is a subset of domain of g.**

If you know and understand, you can answer this question yourself.

fog or gof has got nothing to do in general with whether the functions f and g are continuos or differentiable in any particular interval. It does not make sense to generalize this.