Consider the code below and choose the correct option:
main(){
int child = fork();
int c = 5;
if(child == 0)
c += 5;
else{
child = fork();
c += 10;
if(child)
c += 5;
}
}
(A) Total 3 processes are there with value of variable c as 5, 10, and 15.
(B) Total 3 processes are there with value of variable c as 10, 15, and 20.
(C) Total 3 processes are there with value of variable c as 10, 15, and 15.
(D) Total 4 processes are there with value of variable c as 10, 15, 15, and 20.