carbon dioxide
It yields HCl+CO2, CO2 is a by product of a neutralization reaction with HCl.HCl (hydrochloric acid) if neutralized (reacted) with NaHC03 (sodium bicarbonate) will yield NaCl (table salt) + H2O (water) + CO2 (carbon dioxide)
Magnesium Carbonate
Magnesium chloride is formed.
Magnesium carbonate acts as an antacid. Therefore,it neutralises excess of hydrochloric acid in stomach.
Carbon Dioxide
The products that are formed will be magnesium salt, water and carbon dioxide. Exactly what salt is made depends the acid used. Hydrochloric acid produces magnesium chloride; sulphuric acid produces magnesium sulphate; nitric acid produces magnesium nitrate.
The products are calcium and magnesium chlorides, water and carbon dioxide.
Magnesium Carbonate + Hydrochloric Acid ------> Magnesium Chloride + Water + Carbon Dioxide The previous answer said magnesium hydroxide + carbon dioxide, but then you will have canceled out the chlorine, which due to the law of conservation of mass, is impossible.
Because when you use a certain metal say magnesium oxide with hydrochloric acid you will get: magnesium chloride magnesium carbonate + hydrochloric acid = salt + water + carbon dioxide.
The gas carbon dioxide is released.
magnesium + hydrochloric acid = magnesium chloride + water
Carbon Dioxide