Assume $f:A\to B$ and $g:B\to C$. $g \circ f : A \to C$ is a the constant function (thanks to the comments for noting this).
It can be shown straightforward the opposite (that if $f$ or $g$ is constant, then $f \circ g$ is constant). But this is not the problem.
No. Let f(x)=x^2 have codomain all of $\mathbb{R}$ and g(x) = sign(x+1). If the codomain is restricted so that f is onto instead, then g must be constant.