Dear student,
The process of transformation directly from the solid phase to the gaseous phase, without passing through an intermediate liquid phase is called sublimation, and under certain circumstances, gas can transform directly into a solid. This process is called deposition. In some cases, both solid to gas and gas to solid conversion are called sublimation.
Regards,