Programm geht nicht wegen for schleife Oo ( sagt compilier )
-
#include <stdio.h> #include <stdlib.h> #include <unistd.h> main(){ int i = 0; for(i = 0; i <= 2; i++ ){ setvbuf(stdout,(char *)NULL, _IONBF, 100 ); fork(); wait(); printf("PID=%6d, i=%d \n", getpid(), i); } }
-
Und was sagt der Compiler? Was ist Deine Frage?