C (58/301)

From:Damir Arh
Date:25 Aug 99 at 11:14:36
Subject:Array limits?

From: Damir Arh <damir.arh@guest.arnes.si>

Hello,

I just came accross something the other day. I declared a huge array:

char buffer[50000];

Everything was fine when I compiled the program, but nasty bugs where
occuring all the time, particularly Corrupt Memory List. After I reduced
the buffer to the size of 5000 everything was fine. I'd like to know
whether there are really any limits to the size of an array.

BTW, I'm using GCC if that is of any importance.

Kind regards



Damir Arh <damir.arh@guest.arnes.si>
WWW: http://www2.arnes.si/~gkrjes12/

Owner of A1200T/030 @ 50MHz, 32MB Fast RAM
and Intel Celeron 300A with 96 MB RAM and ATI Rage Pro AGP 4 MB



I like work ... I can sit and watch it for hours.