Exercise 5

Try to figure out what is the output of the following program:

#include
int main (int argc, char ** argv){
int i = 0;
printf ("%d %d\n", getpid(), ++i);
execl (argv[0], argv[0], 0);
printf ("end\n");
return (1);
}

Then compile and run it and see what's going on