When a substance changes from a solid to a liquid (melting), the density generally changes. For most substances, the density of the substance decreases as it transitions from solid to liquid. This is because most solids are denser than their liquid forms due to the tighter packing of molecules in the solid state.
Therefore, the correct answer is:
C. the density of the substance decreases.