首页 > 试题广场 >

列出下面程序所有可能的输出序列: int main() {

[问答题]
列出下面程序所有可能的输出序列:
int main()
{
  if(Fork(==0){
    printf("a"); 
    ffluah(stdout);
  }
  else{
     printf("b"); fflush(stdout) ;
     waitpid(-1, NULL, 0);
  }
  printf("c"); fflush (stdout) ;
  exit(0);
}

ab,abc,bc
发表于 2019-07-17 09:26:27 回复(0)