请分析下列程序。 int main() { printf("This is in main program"); if(fork()==0) printf("I am

10 查阅

请分析下列程序。 int main() { printf("This is in main program"); if(fork()==0) printf("I am in child process"); else printf("I am in parent process");} 程序正确运行后结果是

A.This is in main program I am in child process I am in parent process

B.This is in main program I am in child process

C.This is in main program I am in parent process

D.This is in main program I am in child process This is in main program I am in parent process

参考答案:

A

计算机四级