A coloured ppt. is obtained when H2S gas is passed through an aqueous solution of the salt in presence of NH4OH. The ppt. dissolves in dil. HCl and reacts with NaOH to give white ppt which on standing turns into brown/black mass. The cation present in the salt is -
(A) Cu2+
(B) Mg2+
(C) Ni2+
(D) Mn2+