I\'ve tried the below program. The intent by which this program was created is to discover more about stack sizes.
int main() { int nStack[100000000];
I tried below program.
int main() { int nStack[519492]; cout<<"Okay!"; return 0; }
The output:
Okay!
But if I increase the array size by 1 byte, the program crashes.
int main() { int nStack[519493]; cout<<"Okay!"; return 0; }
Output:
No output. Program crashes.