Originally posted by WDT
That is way too much memory to be allocating. Ominus is right, learn dynamic memory sooner, believe me it takes about a couple of minutes to know the basics about allocating dynamic memory; re-allocating on the fly however...... Well I knida try not to stray there. 'sides you have to know about dynamic memory if you are going to write anything serious.
I just compiled the following code with BC5.5 and it worked fine:
Code:
#include<stdio.h>
int main(void)
{
int test1[30000];
int test2[30000];
int test3[30000];
int test4[30000];
test1[29999] = 1;
test2[29999] = 2;
test3[29999] = 3;
test4[29999] = 4;
printf("%d %d %d %d \n",
test1[29999],test2[29999],
test3[29999],test4[29999]);
return (0);
}