if( unsigned int (a) + unsigned int (b) < 0) return "overflow" else return "ok";
On Sun, Aug 28, 2011 at 7:23 PM, saurabh singh <[email protected]> wrote: > @avinash in that case the number will become negative,,,,,It wont remain a > satisfactory input.Try to think logically and believe me once you get the > logic you will relent why there is no option to delete previous > mails...,,,,, > > > On Sun, Aug 28, 2011 at 6:32 PM, Dave <[email protected]> wrote: > >> @Avinash: Give an example. >> >> Dave >> >> On Aug 28, 7:00 am, "Avinash LetsUncomplicate.." <[email protected]> >> wrote: >> > @dave i was saying if user input a .. he can enter a>intmax then how >> > to detect overflow? >> >> -- >> 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. >> >> > > > -- > Saurabh Singh > B.Tech (Computer Science) > 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 [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. > -- ........................ *MOHIT VERMA* -- 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.
