Characteristic of a ring

Let R be a commutative ring with 1. The characteristic char(R) of R is the unique integer n≥0 such that ⟨n⟩⊂Z is the kernel of the homomorphism θ:Z→R given by

θ(m)={1R+⋯+1R⏟m, if m≥0−1R+⋯+−1R⏟|m|, if m<0

(a) Prove that if f:R→S is a monomorphism of commutative rings with 1, then char(R)=char(S).
(b) Prove by given an example that char(R) is not always preserved by ring homomorphisms.