The importance of showing ALL of the code in C

From: Fred Cisin <cisin_at_xenosoft.com>
Date: Wed Feb 6 14:19:02 2002

On Wed, 6 Feb 2002, John Chris Wren wrote:
> Or it would possibly cause a segfault, since A can only be legally indexed
> by 0..9. (This is assuming it didn't get optimized out).

No. In C, that is actually NOT considered an error by the language! It's
"bad form", but permitted by the language to use array notation to access
memory locations that were NOT allocated to the array!


> And yes, seeing all the code is important. Otherwise, it's just pure
> speculation.
Received on Wed Feb 06 2002 - 14:19:02 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:34:44 BST