On Tue, May 12, 2009 at 5:34 AM, Michael Comperchio <[email protected]> wrote: > The compiler will generate access code that looks something like this for > multidimensional array access: > > *(*(level1 + n) + n)...
Hardly. If you're after an analogy which is more likely to be implemented, try the simpler (assuming base[x][y]): *(base + x times width +y) Which involves no redirection with arrays of pointers and only one dereference, all in a flat memory structure. -- PJH http://shabbleland.myminicity.com/com http://www.chavgangs.com/register.php?referer=9375
