C How Fork Function Works In This Program Stack Overflow

C How Fork Function Works In This Program Stack Overflow