The sleep function when written at the end, forces the program to sleep, preventing him to execute any printf() instructions before it.
Attaching a program.
--
Vikas Bansal
Student(ECE undergraduate final year)
The L.N.Mittal Institute of Information Technology,Rajasthan,India.