题库 软件开发 题目列表 下面程序一共会在屏幕上输出多少个“-” ?[$##$]...
填空题
下面程序一共会在屏幕上输出多少个“-” ?[$##$]

#include<iostream>
#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
using namespace std;
int main( )
{
    int i;
    for(i = 0; i < 2; i++)
    {
        cout<<"-\n";
        fork( );
        cout <<"-\n";
    }
    cout << endl;
    return 1;
}

题目信息
校招真题
-
正确率
0
评论
8
点击