213 views
0 votes
0 votes
#include<stdio.h>
void main ()
{
    int a=10;
    if((fork()==0))
        a++;
    
     printf("%d\n",a);
    
    if((fork()==0))
        a++;
    
     printf("%d\n",a);
     
}

 

Please provide complete flow of above code execution along with output explanation.

Please log in or register to answer this question.

No related questions found