Contiguous Arrays

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Feb 23 13:29:13 AEST 1989


In article <1831 at valhalla.ee.rochester.edu> badri at valhalla.ee.rochester.edu (Badri Lokanathan) writes:
>Yes, accessing the contents of an illegal location
>will almost certainly screw things up, but there is no access happening.

The problem is that even computing the address of an out-of-bounds location
can screw up (and it DOES, on some widespread segmented architectures).
Henry is correct; just because YOU know what the result of such pointer
arithmetic "should" be, does not mean that it will actually turn out that
way at run time.



More information about the Comp.lang.c mailing list