display the process id c program code example
Example: how to print the process id in c
int p_id,p_pid;
p_id=getpid(); /*process id*/
p_pid=getpid(); /*parent process id*/
int p_id,p_pid;
p_id=getpid(); /*process id*/
p_pid=getpid(); /*parent process id*/