I'm trying to run a simulation that involves a large amount of calculations and values.
I've got an issue in that large arrays cause the program to crash before it's even declared any variables. I'm not sure if this is due to my code or due to my operating system refusing to run the program.
Code that crashes the program is:
long double adsorption[2][4][5][10001]
This array should use about 10^6 bytes, and SIZE_MAX is 10^19, so I'm confused as to why it's crashing. (Program is 64 bit in Task Manager)
I'm running on Windows 7 64bit with 12 Gb of memory, of which 10 Gb is generally free. Compiler is MinGW-w64
Apologies if this is quite basic, I'm from a physics background, not coding!
Cheers
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)