This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Array size problem


"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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]