Sugar is a carbohydrate and when sulphuric acid is added to it, the sugar gets converted to an elemental form of C (that is ***** in colour) and water is released and so is heat.
C12H22O11 + H2SO4 → 12C (*****) + 11 [H2SO4 .H2O] + heat