This creates a child process which has a copy of the parent’s heap, stack and data space.
You need to #include <unistd.h>
. You could use this when you want a process to duplicate itself so that the parent and child can each execute different sections of code at the same time.
solved will someone explain what this does in C / UNIX