dev/c/fork_ex/fork_address_space.c

17 lines
203 B
C

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a;
for (a = 0; a < 3; a++)
fork();
printf("%lu\n", (unsigned long)&a);
return EXIT_SUCCESS;
}