Array size limits

后端 未结 5 591
北海茫月
北海茫月 2021-01-12 17:41

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

5条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 18:08

    You can start with allocating DataStructure_* not in the stack. For instance by prepending the static keyword.

    static DataStructure_trus va; 
    static DataStructure_init in;
    

提交回复
热议问题