home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!fg30.rz.uni-karlsruhe.de!gm08
- From: gm08@fg30.rz.uni-karlsruhe.de (Steffani)
- Newsgroups: comp.lang.c
- Subject: ints and overflow
- Date: 6 Jan 1993 16:06:08 GMT
- Organization: University of Karlsruhe, Germany
- Lines: 9
- Message-ID: <1if01gINNa2v@nz12.rz.uni-karlsruhe.de>
- References: <1992Dec31.081322@trc.amoco.com> <3923@mdavcr.mda.ca>
- Reply-To: gm08@rz.uni-karlsruhe.de
- NNTP-Posting-Host: fg30.rz.uni-karlsruhe.de
-
- these days we had a discussion what happens if you increment an
- uninitialized integer. some ppl ment that there will be an error
- because of an overflow. i do not aggree.
- my problem is: can i be shure dealing with integers that all
- additions and subtractions will work modulo 2**(n+1) - 1 or
- can be a problem of overflow causing an interrupt or trap.
-
- hans friedrich steffani
-
-