#include <stdio.h>
int main() { printf(“hello\n”); sleep(1); //延迟1秒 printf(“world\n”); return 0; }
以上程序,运行,两个输出之间相差1秒