Where this energy to excite electron comes from?

  1. We have to understand that free carbon atom would not be in excited state
    under normal conditions.
  2. When the carbon atom is ready to form bonds with other atoms, the energy required for excitation is taken up from bond energies, which are the liberated energies when bonds are formed between carbon atom and other atoms.