1 /* hello.c */ 2 #include <stdio.h> 3 main()4 void main() 5 { 6 printf("Hello World\n"); 7 fflush(stdout); 8 /* 让程序打印完后继续维持在用户态 */ 9 while(1); 10 } 11 12