Re: [Dev-C++] run time errors with big arrays
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <wa...@wa...> - 2004-02-27 01:32:53
|
On 27 Feb 2004 at 1:24, Per Westermark wrote: > What different memory model? My understanding, which apparently was totally false, was that in C, things like int varname[10][10] were allocated onto the heap and in C++ were allocated onto the stack unless specifically put onto the heap with new. I'd gotten that impression from some things I'd read in Eckel's Thinking in C++ and, iirc, Meyer's Effective C++. I'll see if I can find what made me think that and post references. (But I don't think that mistake invalidates the method I used to create the doubly subscripted array.) Sorry if I caused anyone confusion. Watson (the pencil neck) Davis |