* Organic compounds contain carbon atoms bonded to other atoms, typically hydrogen, oxygen, and sometimes nitrogen, phosphorus, sulfur, and halogens.
* Inorganic compounds generally do not contain carbon (except for a few exceptions like carbonates and cyanides).
Granulated sugar, which is primarily sucrose, has the chemical formula C₁₂H₂₂O₁₁. It clearly contains carbon, hydrogen, and oxygen, making it an organic compound.