Carbon (C) is an element, and elements are made up of only one type of atom. Oxygen (O) is a different element.
You might be thinking of carbon dioxide (CO2), which has two oxygen atoms.