The importance of showing ALL of the code in C
> I remember that * (A - 1) used to have the size of
> the array that was allocated! Dont know if that is true today....
I can't imagine there's any reason that would be true except
for (compiler dependent quirk) or (argc, only, preceding argv).
In general, 'c' very often Never cares what the bounds of an array
are, and leaves it to you to stuct-ify or class-ify the array & size
together. Taking array bounds too lightly is probably the number
one problem of programmers of medium & large 'c' programs.
Allocate/Deallocate is probably the number two problem.
Yeah, and "if (a=b)..." and "a[max dimension]=b;" still do get
me from time to time, but they're the easy ones.
John A.
Received on Wed Feb 06 2002 - 16:33:52 GMT
This archive was generated by hypermail 2.3.0
: Fri Oct 10 2014 - 23:34:44 BST