how to get a pid of a process c code example Example: c program to print pid of a process Process ID: 1298 Parent Process ID: 879