Carbon is oxidized because to increase of its oxidation number.
Oxygen is reduced because to decrease of its oxidation number.
If the oxidation number increase, the element is giving electrons. Electrons are transferred from the oxidized atom to the reduced atom.
If you find some mistake in my English, please let me know!