Smelling salts have ammonium carbonate as their chief constituent. When sniffed, the salts react with the basic lining of the nostrils to release gas, which irritates membranes, thereby causing the person to inhale deeply resulting in improved alertness.
a.
Ammonium carbonate:
b.