Carbohydrates and hydrocarbons are two different classes of organic compounds. ... Carbohydrates contain Carbon (C), Hydrogen (H), Oxygen (O). Whereas hydrocarbons contain only Carbon (C) and Hydrogen (H). Both liberate energy in presence of oxygen and get converted to carbondioxide and water.