[Solved] Compare number dont work properly in C
Your last addition to the post makes it a bit more clear. You wait for 3 child processes like this: wait(&team1); wait(&team2); wait(&team3); So team1..team3 will have the exit code of those processes. But the function wait does not wait for any specific process, the first wait will return the exit code of the first … Read more