#include <stdio.h> #include <process.h> #include <sys/types.h> int main() { pid_t pid; pid = getpid(); printf("%d\n" ,pid); getchar(); }