单选题 网络工程师
题号 #2964452

对于如下C语言程序
int main()
{
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

答案解析

暂无解析

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考