Let $f:A\to B$ be a group homomorphism between abelian groups. Let $$0\to\ker f\to A\xrightarrow fB\to C\to0$$ be an exact sequence of abelian groups. Can we say that $C\cong \operatorname{coker}f$ ?
I think this does not hold in general, but I cannot find examples.
The answer is yes. Let $g$ denote the surjection from $B$ onto $C,$ then $$C\cong B/\ker g=B/\operatorname{im}f.$$