for each fork call two processes are created , one is parent and other is child
fork() returns pid which can be negative: unsuccessful
it returns +ve pid (process id of child process) to the parent process and pid=0 to the newly created child process.