[Solved] How to find the PID of a C code during compilation time? [closed]
Why not the getpid() method defined in unistd.h? #include <unistd.h> int main(){ int pid = getpid(); int parentsPID = getppid(); return 0; } 1 solved How to find the PID of a C code during compilation time? [closed]