Which of the following is the main function of the light-independent reactions of photosynthesis?
A) to use up water
B) to produce glucose
C) to use up excess carbon dioxide
D) to produce oxygen