Re: [algogeeks] Re: exit() vs. _exit()
Well i dont know about ur case but _exit() is use to exit from current process only like to exit child in fork() and exit() is use to exit whole process tree On Thu, Aug 18, 2011 at 3:26 PM, Amol Sharma wrote: > anyone ?? > -- > > > Amol Sharma > Third Year Student > Computer Science and Engineering > MNNIT Allahabad > > > > > On Thu, Aug 18, 2011 at 10:40 AM, Amol Sharma wrote: > >> what is the difference between exit() and _exit >> >> http://ideone.com/MCzGy >> >> http://ideone.com/SxbwT >> >> when i am using exit() hello world is printed but with _exit() nothing >> gets printed though it ran successfully.plz explain why is so happening >> ?? >> >> >> -- >> >> >> Amol Sharma >> Third Year Student >> Computer Science and Engineering >> MNNIT Allahabad >> >> >> > -- > 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. > -- **Regards SAGAR PAREEK COMPUTER SCIENCE AND ENGINEERING NIT ALLAHABAD -- 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.
Re: [algogeeks] Re: exit() vs. _exit()
exit() calls clean up codes (flushing the buffer etc) while _exit() does not.. FYI- pls use google for such questions. Regards, Abhishek On Thu, Aug 18, 2011 at 3:26 PM, Amol Sharma wrote: > anyone ?? > > -- > > > Amol Sharma > Third Year Student > Computer Science and Engineering > MNNIT Allahabad > > > > > On Thu, Aug 18, 2011 at 10:40 AM, Amol Sharma wrote: > >> what is the difference between exit() and _exit >> >> http://ideone.com/MCzGy >> >> http://ideone.com/SxbwT >> >> when i am using exit() hello world is printed but with _exit() nothing >> gets printed though it ran successfully.plz explain why is so happening >> ?? >> >> >> -- >> >> >> Amol Sharma >> Third Year Student >> Computer Science and Engineering >> MNNIT Allahabad >> >> >> > -- > 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. > -- 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.