#include <stdio.h> int main(void) { int i;for(i=0;i<2;i++){if(fork()==0){printf("hello\n");}} return 0;}
Standard input is empty
hello hello hello hello
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!