阿摩線上測驗 登入

試題詳解

試卷:96年 - 桃園縣九十六年度國中教師甄選【專門科目: 電腦】試題#8488 | 科目:教甄◆電腦科專業

試卷資訊

試卷名稱:96年 - 桃園縣九十六年度國中教師甄選【專門科目: 電腦】試題#8488

年份:96年

科目:教甄◆電腦科專業

以下的程式中fork()為UNIX的Systemcall, main() { int pid; pid=fork(); printf("My process ID is %d\n",pid); pid=fork(); printf("My process ID is %d\n",pid); } 請問其執行結果會印出幾行文字?
(A)2
(B)4
(C)6
(D)以上皆非。
正確答案:登入後查看