/* getpid-getppid.c */ #include main(int argc, char *argv[]) { printf("pid is %d and parent pid is %d\n",getpid(), getppid()); } /* end of getpid-getppid.c */