#include "stdafx.h"
#include<sys/types.h>
#include<stdio.h
#include<unistd.h>
int value=5;
int _tmain(int argc, _TCHAR* argv[]){
pid_t pid;
pid=fork();
if(pid==0)
{
value+=15;
}
else if(pid>0)
{
wait(NULL);
printf("Parent value:=%d",value);
exit(0);
}
return 0;
}
What is the output of this program? Can the value of parent be 20 or the child will av its own copy of the variable "Value"