Code: cpp
if(!pid) // if child process is running
    {
        printf("Hey I am Parent\n");
        sleep(1);
    }
    else
    {
        printf("Hey i am the Child with PID : %d\n",pid);
        sleep(1);
        return(0);
    }

my dear this code is wrong..