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 <kamakshi...@gmail.com> 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 > kamakshi...@gmail.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.