When sugar is heated energy is released in the form of smoke and black soot. Sugar consists of three elements i.e. oxygen hydrogen and carbon. When heated these atoms react with fire and get converted into liquid. Then these atoms gets combined with oxygen in the air and forms another group of atom.