Answers for "wait() pause() sleep() in c"

C
1

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

Code answers related to "C"

Browse Popular Code Answers by Language