请分析以下程序。 int main() { pid_t pid; pid = fork(); if(pid==0) printf("I am the child
请分析以下程序。 int main() { pid_t pid; pid = fork(); if(pid==0) printf("I am the child process, my process ID is%d\n",getpid()); else printf("I am the parent process, my process ID is%d\n",getpid());} 那么,该程序正确运行后的结果是
A.I am the child process, my process ID is 3744 I am the parent process, my process ID is 3987
B.I am the child process, my process ID is 3744
C.I am the parent process, my process ID is 3987
D.不输出任何信息
正确答案:A
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
