阅读背景:

在堆栈已满之前,C / C ++中的最大递归函数调用会产生分段错误吗?

来源:互联网 

I was doing a question where I used a recursive function to create a segment tree. For larger values it started giving segmentation fault. So I thought before it might be because of array index value out of bound but later I thought it might be because of program stack going too big. I wrote this code to count what is the maximum number of recursive calls allowed before the system give seg-fault.I was doing a question where I used a recursive




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: