(i) Aliphatic primary amines (except methylamine) react with nitrous acid in cold condition to form unstable aliphatic diazonium salt, which decomposes to give alcohol with liberation of nitrogen gas.
The reaction of ethylamine with nitrous acid is as shown.
C2H5−NH2+HNO2NaNO2+HCl−−−−−−−−→273−278KC2H5−OH+H2O+N2↑
(ii) Aromatic primary amines react with nitrous acid in cold condition to give diazonium salts.
C6H5−NH2+NaNO2+2HCl273−278K−−−−−−−→C6H5−N+2Cl−+NaCl+2H2O