| Current Path : /var/www/html/vijayk/programs/ |
| Current File : //var/www/html/vijayk/programs/newfork.cpp |
#include<iostream.h>
#include<unistd.h>
#include<sys/types.h>
main()
{
pid_t pid;
pid=fork();
cout<<"sameer";
if(pid==0)
{
cout<<"hello";
pid=fork();
}
else
cout<<"world";
}