Aniline forms stable diazonium salts when reacted with nitrous acid HNO2, and no N2 gas is evolved. NaNO2+HCl→HNO2+NaCl C6H5NH2NaNO2+HClC6H5N2Cl−+NaCl+2H2O
Benzylamine on reaction with HNO2 yeilds Benzyl alcohol and Nitrogen gas. C6H5CH2NH2HNO2[C6H5CH2N2+Cl−]H2OC6H5CH2OH+HCl+N2(g)