[Dev-C++] run time errors with big arrays
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: risto h. <rh...@on...> - 2004-02-26 23:26:53
|
Initialising arrays of large size seems to be a problem - the programs are compiled without warnings, but if the array (or multidimensional array) exceeds some specific size, the program crashes. Has anyone of you had the same problem, and is there anything to fix that? A related question that I have not found answered in my programming textbooks: How is a multidimensional array dynamically initialised? In other words, this works: double *ar; ar = new double[10]; but what is the correct syntax for initialising for example ar[10][10] with new? Risto Holopainen |