Product of this reaction depends on the amount of oxygen.
i.) If oxygen is excess:
Carbon, as graphite, burns to form gaseous carbon (IV) oxide (carbon dioxide), CO2
Equation :
C + O2 ----> CO2. This reaction is also called combustion reaction. The expensive way to produce CO2 is to burn Diamond in the presence of air at 600-800°C. Hope it helped you. :D