You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
252 B

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
void main(void) {
pid_t id_actual, id_padre;
id_actual = getpid();
id_padre = getppid();
printf("Mi PID es: %d\n", id_actual);
printf("El PID de mi papa es: %d\n", id_padre);
}

Powered by INFORMATICA.FP.EDU.ES.