Answer:
This is not always entirely clear, but most chemists would say that all the hydrocarbons and all their derivatives in which at least one carbon-hydrogen bond in a hydrocarbon is replaced by a covalent bond to some atom other than hydrogen would qualify as organic. However, carbonates, carbon dioxide, and carbon monoxide are often considered inorganic, even though at least the latter two of these would qualify as organic under the general definition. Calcium carbide is also somewhat controversially assigned to either category, being considered organic because structurally it is the calcium salt of the hydrocarbon acetylene (also called "ethyne") or inorganic because it is an ionic salt.