Question : c pause for 1 second
Answered by : grotesque-gazelle-47a0tlit1tix
#include <stdio.h>
#include <unistd.h> //you need this for linux!
#include <dos.h> //you need this for Windows!
int main(){ printf("Hello,"); sleep(5); // format is sleep(x); where x is # of seconds. printf("World"); return 0;
}
Source : https://stackoverflow.com/questions/10922900/is-it-possible-to-wait-a-few-seconds-before-printing-a-new-line-in-c | Last Update : Sun, 21 Jun 20