C) Both.
Plants go through photosynthesis (producing Oxygen), but to consume the sugars they have created they have to go through cellular respiration as well, which produces carbon dioxide. All organisms go through cellular respiration.
Hope this helps! :)