But the o/p at http://ideone.com/zKZuS
seems to be different than what one is getting from parent child tree On Aug 8, 10:41 am, Kamakshii Aggarwal <[email protected]> wrote: > what will be the o/p of the following program: > > main() > { > int ret; > ret=fork(); > ret=fork(); > ret=fork(); > ret=fork(); > > if(!ret) > printf("one"); > else > printf("two"); > > } > > -- > Regards, > Kamakshi > [email protected] -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
