what does fork() do in c.? Is it same as fork operation in OS ?
What is the o/p of following program ?
#include<stdio.h>
main()
{
int i=0;
fork();
printf("%d",i++);
fork();
printf("%d",i++);
fork();
wait();
}