We can change stack size in linux temporarily by using the command ulimit -s new_value
, But is there any way to change stack size permanently, or Can we do something within C++ code, so it will change stack size by itself?
I tried changing this, but It didn't work. I faced this issue in hackercup qualification round D2, terminal gave segfault, and later I came to know about the low value of default stack size in linux.