Carbonate or bicarbonate compounds when reacted with an acid, they produce carbon dioxide gas, salt, and water.
For example, When calcium carbonate reacts with hydrochloric acid, carbon dioxide, calcium chloride salt, and water are formed. The balanced chemical equation for this reaction is shown below,
CaCO3+2HCl→CaCl2+CO2+H2O