implicit declaration of function ‘getpid’ code example
Example: implicit declaration of function ‘getpid’
#include <stdio.h>
#include <unistd.h>
int main()
{
printf("Process Id is: %ld\n",getpid());
return 0;
}
#include <stdio.h>
#include <unistd.h>
int main()
{
printf("Process Id is: %ld\n",getpid());
return 0;
}