In the human body, the respiratory system is primarily responsible for the exchange of gases. During inhalation, oxygen enters the lungs while carbon dioxide is expelled. One of the key structures in the respiratory system that facilitates this exchange is the alveoli.
Which of the following statements correctly describes the main function of the alveoli?