1. Carbon has the property of catenation. Two or more carbon atoms can share some of their valence electrons to form (single, double and triple) bonds.
2. The straight chains or branched chains or rings may have different shapes and sizes. This results in formation of many compounds.
Hence, carbon atoms are capable of forming an unlimited number of compounds.