Re: Overflow/underflow

From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: 07/05/04


Date: Mon, 5 Jul 2004 10:35:36 +0100

In article <wv%Fc.60037$OB3.57155@bgtnsc05-news.ops.worldnet.att.net>,
dover <doverkn@close.com> writes
>Among the operations of +, -, * and / of ints, are the two cases all that
>could cause overflow/underflow?
>
>1. Addition of 2 large ints.
>2. multiplication of 2 large ints.
>
>Is there any other cases?

Subtraction of a negative value from a positive one.

-- 
Francis Glassborow      ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects


Relevant Pages

  • Re: Overflow/underflow
    ... > could cause overflow/underflow? ... outside the range the representation can support. ... Multiplication of any two ints where the result is ...
    (alt.comp.lang.learn.c-cpp)
  • Overflow/underflow
    ... Addition of 2 large ints. ... What happens when overflow/underflow does? ... Just loss of precision of data of ...
    (alt.comp.lang.learn.c-cpp)