stack size

can anyone tell me whats exact stack limit for c++ and can we increase it in some way from code?

AFAIK you cannot increase it, I do not know what is the exact value

1 Like

I did some testing in the “Code, Compile & Run” environment, codechef seems to have a stack size of 8MB. That means you can get a recursion depth up to 2^19 if you don’t store any other local variables in the recursive calls.

//