Consider the following code segment: main(){ for(int i=0; i≤9; i++){…
Consider the following code segment:
main(){
for(int i=0; i≤9; i++){
if(i%2==0) fork();
printf(“hello”);
}
}
How many times printf will be executed by the child process?
Attempted by 146 students.
Sign up free to check your answer
Sign up freeLoading lesson…

