请分析下列程序。
int main(){printf("This is in main program");if(fork()==0)printf("I am in child process");elseprintf("I am in parent process");}
程序正确运行后结果是
A、ThisisinmainprogramIaminchildprocessIaminparentprocess
B、ThisisinmainprogramIaminchildprocess
C、ThisisinmainprogramIaminparentprocess
D、ThisisinmainprogramIaminchildprocessThisisinmainprogramIam