Aldehyde reacts with one molecule of anhydrous monohydric alcohol in presence of dry hydrogen chloride to give alkoxyalcohol known as hemiacetal, which further reacts with one more molecule of anhydrous monohydric alcohol to give a geminaldialkoxy compound known as acetal as shown in the reaction.
Step 1 :

Step 2 :

Ketones react with 1, 2 – or 1, 3 – diols in presence of dry hydrogen chloride to give five or six-membered cyclic ketals.
