Then I guess some things have changed in the last 25 years.
I didn't mean to be priggish, sorry Michael _____ From: [email protected] [mailto:[email protected]] On Behalf Of Paul Herring Sent: Wednesday, May 13, 2009 6:54 AM To: [email protected] Subject: Re: [c-prog] Re: Difference b/w pointer to pointer and 2D arrays On Wed, May 13, 2009 at 11:26 AM, Michael Comperchio <mcmp...@gmail. <mailto:mcmprch%40gmail.com> com> wrote: > Peter wrote: > >> The declaration... >> >> int a[2][3]; >> >> ...is... >> >> |<--------- [0] ---------->|<---------- [1] --------->| >> +--------+--------+--------+--------+--------+--------+ >> | [0][0] | [0][1] | [0][2] | [1][0] | [1][1] | [1][2] | >> +--------+--------+--------+--------+--------+--------+ > > > > --- You may find it useful to think this as you work with it, but in reality > there is NO guarantee that this will be so. In today's massive memory spaces > this is more likely to be so, but NOT guaranteed. If it's declared as an array, it is guaranteed to be true, or your program runs out of memory. Either that or your compiler is seriously broken. -- PJH http://shabbleland. <http://shabbleland.myminicity.com/com> myminicity.com/com http://www.chavgang <http://www.chavgangs.com/register.php?referer=9375> s.com/register.php?referer=9375 [Non-text portions of this message have been removed]
