Home > Back-end >  Why on VS2019, pass attribution of stack overflow and stop when the depth of the different?
Why on VS2019, pass attribution of stack overflow and stop when the depth of the different?

Time:10-25

In VScode (MinGW compiler) to calculate the factorial every time stopped when n=6571,


Many times when running the code found on VS2019, n may stop on different values, for some of the critical data show the can sometimes run is completed, and sometimes tip stack overflow:

In the lower left window automatically n=1515

In the lower left window automatically n=1519

Every time I thought that runtime stack size is the same, just the stack overflow n should be constant, excuse me why VS2019 on this kind of situation?
  • Related