编写一个程序,使用getpid函数来获取当前进程的进程ID
更新:HHH   时间:2023-1-7


#include <stdio.h>
#include <sys/types.h>

int main(int argc, char *argv[])
{
printf("The current process ID is %d\n",getpid());
return 0;
}

返回编程语言教程...