Step 1: Understanding the Concept
\(\text{Ar-OH}\) reacts with an acyl chloride in the presence of pyridine by acylation, losing HCl.
Step 2: Reaction
\(\text{Ar-OH}+\text{Cl-CO-R}\rightarrow\text{R-CO-OAr}+\text{HCl}\). The hydrogen of OH and the chlorine of the acid chloride leave as HCl.
Step 3: Role of pyridine
Pyridine neutralises the HCl formed and drives the reaction forward.
Step 4: Identify Z
Z is the ester \(\text{R-CO-OAr}\). The acyl carbon stays attached to R and is now bonded to the aryl oxygen.
Final Answer:
Z is the ester R-CO-OAr.
\[ \boxed{\text{(C) }\text{R-CO-OAr}} \]