In the photosynthesis reaction, which can be summarized by the equation:
\[ 6 , \text{CO}_2 + 6 , \text{H}_2\text{O} \rightarrow \text{C}6\text{H}{12}\text{O}_6 + 6 , \text{O}_2 \]
Six carbon atoms (from six molecules of carbon dioxide, \(\text{CO}_2\)) combine to form one molecule of glucose (\(\text{C}6\text{H}{12}\text{O}_6\)), which contains six carbon atoms.
Therefore, the answer is: A. 6