Thread
:
Possibility to execute both if and else together
View Single Post
syed_nit
Newbie Member
13Aug2010,11:24
#include<stdio.h>
#include<unistd.h>
int main()
{
pid_t pid;
pid = fork();
if(pid==0)
{
printf("\nIF IS RUNNING\n");
}
else
{
printf("\nELSE IS RUNNING\n");
}
return 0;
}