check if the sum is less than any of the two numbers that means the sum
resulted in a overflow.

On 1/24/07, Abid <[EMAIL PROTECTED]> wrote:
>
>
> This is an interview question.
> What is the simples way to check if the sum of two unsigned integers
> has resulted in an overflow. ?
>
>
> >
>


-- 
Regards
Aravind

"Too often we underestimate the power of a touch, a smile, a kind word, a
listening ear, an honest  compliment, or the smallest act of caring, all of
which have the potential to turn a life around."

"Do I contradict myself?
Very well then I contradict myself,
I am large, I contain multitudes."
- Walt Whitman

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups-beta.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to