What is the oxidation number of carbon in the compound carbon dioxide, CO2?

A) +3
B)+2
C)-3
D)+4