This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Array size problem
- From: "Alex Vinokur" <alexvn at connect dot to>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Jul 2004 12:48:05 +0300
- Subject: Re: Array size problem
- References: <1389930990@web.de>
"Joachim Matussek" <joachim.matussek@web.de> wrote in message 1389930990@web.de">news:1389930990@web.de...
> Hello,
>
> when i try to declare a big float array within a function my program crashed. Smaller arrays work well.
>
> Example:
>
> float array[70000][100];
>
> MinGW-3.1.0-1
> Windows 2000 Prof SP4
>
> Thx for your help,
>
> Joachim Matussek
>
Use `malloc' to create big array.
`malloc' returns a pointer to the newly allocated space, if successful; otherwise it returns `NULL'.
--
Alex Vinokur
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn