Author Topic: problem at declare bidimensional array  (Read 5868 times)

iscneo

  • Guest
problem at declare bidimensional array
« on: February 19, 2013, 11:44:31 pm »
hi community

I new user in codeblocks,  itry to declare tree didimensional array, and to buidl and run the program terminated in win7. I saw that only I can declare one array,

example:
int array1[512][715];  its ok at momento to run

example2:
int array1[512][715];
int array2[512][715];
int array3[512][715];

programa interrupted.

Is there at limit in length to arrays?

thanks


Offline jarod42

  • Multiple posting newcomer
  • *
  • Posts: 87
Re: problem at declare bidimensional array
« Reply #1 on: February 20, 2013, 12:15:14 pm »
Unrelated to C::B

The only limit is the memory (search on web info about stack/heap):
The size of int[512][715] is 1430 Ko (~= 1.4Mo)