Following C program will print Process ID.
#include<stdio.h>
int main(void)
{
printf("My process ID %ld",getpid());
return 0;
}
Output of the program:
My process ID 2213.
Note: You will get different process ID on your system.
#include<stdio.h>
int main(void)
{
printf("My process ID %ld",getpid());
return 0;
}
Output of the program:
My process ID 2213.
Note: You will get different process ID on your system.
* * * * *
No comments:
Post a Comment