When sucrose (table sugar) is burned, it undergoes a combustion reaction. The chemical equation for the combustion of sucrose is:
C12H22O11 + 12O2 -> 12CO2 + 11H2O
Sucrose reacts with oxygen to produce carbon dioxide and water. This reaction releases energy in the form of heat and light.
When sugar is heated, it first melts and changes from a solid to a liquid state. As the temperature increases, sucrose breaks down into glucose and fructose. Further heating causes the loss of water molecules, and the glucose and fructose react with each other to produce various compounds that give caramel its flavor.
At very high temperatures, sucrose undergoes further decomposition, resulting in the formation of carbon and water vapor. The carbon remains as a black powdery substance known as charred sugar.
Caramelization is the process of browning sugar, which occurs when sugar is heated. It is widely used in cooking to obtain a brown color and a sweet nutty flavor.
For more information, you can refer to the following link:
https://www.vedantu.com/question-answer/happens-when-sugar-is-heated-class-12-chemistry-cbse-5f6112d890b142096e05d674