}//all brackets of parent of all fork should be closed at the end of main.......so that same parent will remain alive......& all child of this parent work seprately...if u close any of else bracket before..here....after that those set of statements will be executed by parent & also child of that parent.....which was foked.........