If a solid directly converts to gas on heating and the gas directly converts to solid on cooling, this phenomenon is called sublimation.
If a solid directly converts to gas on heating and the gas directly converts to solid on cooling, this phenomenon is called sublimation.