Fork() Function in C
//program to demonstrate the use of fork Function
Int main()
{
Printf("Hello");
Fork();
Fork();
}
This function will print 4 times Hello ,
Thats because fork Function clones the parent process and returns value either 0 or 1.
When it returns" 0" implies the "child"
And for parent its "1".