1,326 views
2 votes
2 votes
Consider the following code:

void main(){

For(int k=1;k<=5;k++){

pid[k]=fork();

}

In the given code all fork() statement executed successfully and all pid variables initialized to 0.What will be the total no of processes created by the above code?

A.1

B.5

C.16

D.32

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Soumya Tiwari asked Dec 12, 2018
258 views
Is solution given correct Can please someone verify and explain?
0 votes
0 votes
1 answer
3
0 votes
0 votes
3 answers
4