For inorganic carbon, #CO_2#, and #CO_3^(2-)#, oxidation states are fairly easy to assign. For organic compounds, the process is more difficult but still doable. Carbon can assume oxidation states of #C(-IV)# to #C(+IV)#. See the link, and if there are queries come back. The link also defines the #"oxidation state"# .