The overall charge on the compound is 0.
This means that the oxidation number of the carbon, 2 + x +(-6) = 0 x = +4 Therefore, the oxidation number of carbon is +4. Regards