Assertion (A): When aniline is treated with ethanoyl chloride in the presence of pyridine, the acetyl group becomes attached to the nitrogen atom, and the product is N-phenylethanamide (acetanilide).
Reason (R): Acylation of aniline is an electrophilic substitution reaction in which the acetyl group replaces a hydrogen atom of the benzene ring.

