Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: iscneo on February 19, 2013, 11:44:31 pm

Title: problem at declare bidimensional array
Post by: iscneo 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

Title: Re: problem at declare bidimensional array
Post by: jarod42 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)