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];
To change the size of the stack allocated for the main thread that is raised by the process loader to run the code at it's entry point, look to your linker documentation. It's also possible to edit that stack size in the executable header metadata.