Aliphatic primary amine react with nitrous acid to form diazonium salt which being unstable, decompose to form alcohol. While methyl amine reacts with nitrous acid to form methyl nitrite and dimethyl ether. CH3NH2+2HNO2methylnitrileCH3ONO+N2+H2Omethylamine2CH3NH2+2HNO2dimethyletherCH3OCH3+2N2+3H2O