Answer:
Hydroxyl group of the carboxylic acid is destined to leave and the oxygen of the alcohol moiety stays with its hydrogen destined to leave.
Hope this helps, please let me know if I'm wrong.
1.6m questions
2.0m answers