How to sleep in c Code Answer's

C is a general-purpose programming language. It is most commonly used for system programming but also used for writing applications that need to be portable to many systems. Here's an easy way to make sure that you're sleeping in your C code. 

how to sleep in c

By PhoenixPhoenix on Mar 03, 2020
#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");  
}

Source: www.poftut.com

Add Comment

0

sleep function in c

By LeonardoA00LeonardoA00 on Jan 20, 2021
#include <unistd.h>

unsigned sleep(unsigned seconds);

Add Comment

0

sleep in c

By Sad SantaSad Santa on Aug 14, 2020
sleep(5); //sleep for 5 secs

Add Comment

0

You can use the sleep function, which is a built-in function in the C standard library. The sleep function is present in all C compilers and so is available in all C programs.

C answers related to "how to sleep in c"

View All C queries

C queries related to "how to sleep in c"

Browse Other Code Languages

CodeProZone