how to sleep in c code example
Example 1: sleep in c programming
//sleep function provided by
#include
#include
#include
int main(){
printf("Sleeping for 5 seconds \n");
sleep(5);
printf("Wake up \n");
}
Example 2: how to sleep in c
#include
#include
#include
int main(){
printf("Sleeping for 5 seconds \n");
sleep(5);
printf("Sleep is now over \n");
}
Example 3: sleep function in c
#include
unsigned sleep(unsigned seconds);
Example 4: sleep in c
sleep(5); //sleep for 5 secs