I\'m not understanding the output of this program:
#include #include #include int i = 0; int main() {
Fork will make a copy of the process. An independent copy of the process. So, if a global variable contains 3 at the time you fork, each copy of the process gets their very own 3. And if they modify, their modifications are completely independent.