Answers for "sleep in c programming"

C
4

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");  
}
Posted by: Guest on June-03-2020
0

sleep function in c

#include <unistd.h>

unsigned sleep(unsigned seconds);
Posted by: Guest on January-20-2021
1

sleep in c

sleep(5); //sleep for 5 secs
Posted by: Guest on August-14-2020
-1

use sleep in c in windows

#include <Windows.h>
 
int main()
{
    Sleep(500);
}
Posted by: Guest on December-11-2020

Code answers related to "C"

Browse Popular Code Answers by Language