对于如下 C 语言程序
I am the child process , x =2I am theparent process , x =0
I am the parent process , x =2I am thechild process , x =0
计算机程序设计中的 fork() 函数的返回值:若成功调用一次则返回两个值,子进程返回 0 ,父进程返回子进程标记;否则,出错返回一 1 。运行后的输出为 I am the child process , x=2 I am the parent process , x=0 。故本题答案选择 A 选项。