Cellular respiration and photosynthesis are reverse and complement reactions to each other.
In photosynthesis, carbon dioxide and water yield glucose and oxygen:
CO₂ + H₂O → C₆H₁₂O₆ + O₂
In the opposite reaction - cellular respiration, glucose and oxygen yield water and carbon dioxide:
C₆H₁₂O₆ + O₂ → CO₂ + H₂O