Horje
sleep in c programming Code Example
sleep in c programming
//sleep function provided by <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds \n");
	sleep(5);
	printf("Wake up \n");  
}
how to sleep in c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
 
int main(){
  
	printf("Sleeping for 5 seconds \n");
	sleep(5);
	printf("Sleep is now over \n");  
}
sleep function in c
#include <unistd.h>

unsigned sleep(unsigned seconds);
use sleep in c in windows
#include <Windows.h>
 
int main()
{
    Sleep(500);
}




16

Related
reverse a number in c Code Example reverse a number in c Code Example
show image in matplotlib Code Example show image in matplotlib Code Example
remove element from np array Code Example remove element from np array Code Example
what is strikethrough in markdown Code Example what is strikethrough in markdown Code Example
invoke-webrequest download file Code Example invoke-webrequest download file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14