Let ([.] represents the greatest integer function.) Then
Since
g(x) is not continuous at x = 1 but exists.
we have
and
So, does not exist and, hence, f(x) is not continuous at x = 1.
We have
So, gof is continuous for all x.
We have
which is clearly not continuous.