{
pid_t pid;
int x=1;
pid = fork();
if(pid==0)
printf("I am the child process, x=%d\n", ++x);
else
printf("I am the parent process, x=%d\n", --x);
}
在UNIX操作系统中对旳编译链接后,其对旳旳运行成果是
A) I am the child process, x=2
I am the parent process, x=0
B) I am the child process, x=2
C) I am the parent process, x=0
D) I am the parent process, x=2
I am the child process, x=0
评论0
最新资源