Header Files Used
For the Windows platform, we can include windows.h library.
#include<windows.h>
For the Linux platform, we can use unistd.h standard library. We can include this library as shown below
#include<unistd.h>
sleep() Function in C
sleep() function in C allows the users to wait for a current thread for a specific time. Other operations of the CPU will function properly but the sleep() function will sleep the present executable for the specified time by the thread.
Contact Us