使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
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());}
那么,该程序正确运行后的结果是()
printf("This is in main program");
if(fork()==0)
printf("I am in child process");
printf("I am in parent process");}
程序正确运行后结果是()
Int main()
Fork();
Fork();}
{ printf("Hello");
fork();
printf("Hello");
printf("Hello");}
不考虑其他因素,程序正常运行后共打印出多少个"Hello"( )
int x=1;
printf("I am the child process, x=%d\n", ++x);
printf("I am the parent process, x=%d\n", --x);
}
在 UNIX 操作系统中正确编译链接后,其正确的运行结果是( )
printf("Hello World\n");
在 UNIX 操作系统中正确编译链接后,其正确的运行结果为( )
printf("HelloWorld\n");
int a=1;
printf("This is the son process, a=%d\n", ++a);
printf("This is the dad process, a=%d\n", --a);
在 UNIX 操作系统中正确编译链接后,其运行结果为( )
int i;
for ( i = 0; i < 1;i++)
for ( i = 0; i < 3;i++)
for ( i = 0; i < 2;i++)
int a=10;
pid= fork();
在 UNIX 操作系统中正确编译链接后执行,其运行结果是( )
printf("This is the son process, a=%d\n", --a);
printf("This is the dad process, a=%d\n", ++a);
int a=5;
int a = 20;
if (pid == 0)
在 UNIX 操作系统中正确编译链接后执行,其运行结果为( )