Gaseous exchange in a leaf occurs through stomata. During the day, plants take in carbon dioxide (CO₂) from the air through stomata for photosynthesis, and oxygen (O₂) is released as a byproduct. At night, when photosynthesis stops, plants take in oxygen for respiration and release carbon dioxide. The process occurs by diffusion, driven by concentration gradients.