When elemental carbon is burned in the open atmosphere, with plenty of oxygen gas present, the product is carbon dioxide.
$$\mathrm{C}(s)+\mathrm{O}_{2}(g) \rightarrow \mathrm{CO}_{2}(g)$$
However, when the amount of oxygen present during the burning of the carbon is restricted, carbon
monoxide is more likely to result.
$$2 \mathrm{C}(s)+\mathrm{O}_{2}(g) \rightarrow 2 \mathrm{CO}(g)$$
What mass of each product is expected when a $5.00-\mathrm{g}$ sample of pure carbon is burned under each of these conditions?