I have an array problem that i want to overcome, if i change the value of const int \"are\" to 2048 the program runs fine but at 8192 or even at 4096 ( just 130,000 elements
Allocate the array dynamically, since there are often limits on how much data you can have on the stack (which is where automatic local variables typically end up):