What is the reaction with antacids and hydrochloric acid in the stomach?

Depends on drug. Some drugs neutralize acid, e.g. Maalox; others such as Nexium (esomeprazole) inhibit production of gastric acid.