During photosynthesis in plants, what is the source of the carbon in the sugar molecule (C6H12O2)?

A carbon dioxide in the air
B carbon monoxide in the air
C carbon particles in the soil
D carbon particles in water