 Compounds based primarily on carbon and hydrogen atoms are called organic compounds, and all others are called inorganic compounds.Compounds containing bonds between carbon and a metal are called organometallic compounds.Compounds in which components share electrons are known as covalent compounds.