Horje
sleep function in c 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);
}




C

Related
hello world program Code Example hello world program Code Example
reading string with spaces in c Code Example reading string with spaces in c Code Example
arduino wifi client Code Example arduino wifi client Code Example
arduino for loop Code Example arduino for loop Code Example
how to create calculator with switch in c Code Example how to create calculator with switch in c Code Example

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