Oh, so the child process' instructions begin at the point where the fork() function was called..... I was expecting it to begin from main(), so I was overcomplicating stuff!!