Hydrochlorine acid reacts with silver nitrate to give silver chloride salt (AgCl) and nitric acid (HNO3)
In this reaction Ag(silver) is more reactive than hydrogen.So,silver displaces hydrogen and forms silver cloride.
Reaction involved is:
AgNO3+HCl→AgCl+2HNO3