可能,因为每次通话都要存储退货地址,你就会用完自动存储空间的 。Eric answered your question, and I have a guess about the why part.Probably, since each call has to store the return address, you ran outof automatic storage. 埃里克回答了你的问题,我猜对了为什么部分。 可能,因为每个电话都必须存储返回地址,所以你用完了自动存储的。Eric answered your question, and I have a guess about the why part.Probably, since each call has to store the return address, you ran outof automatic storage. 循环更可能是(i = 0; malloc(dim); i ++)/ * nothing * /; 耗尽可用的''堆''内存,系统(无论是什么,而且是BLC< wink>)强行终止程序。 致OP:我的赌注是,如果你深入挖掘,你会在返回代码上找到一些 文档,告诉你如何确定是什么 "返回值-1073741819"实际上意味着,那个文件 会引导你内存耗尽。错误终止。 HTH - LewIt is more likely that the loopfor (i=0; malloc(dim); i++) /*nothing*/ ;exhausted available ''heap'' memory, and the system (what-ever that iswrt CLC <wink>) forcibly terminated the program.To the OP: My bet is that, if you dig deep enough, you will find somedocumentation on returncodes that tells you how to determine what a"return value of -1073741819" actually means, and that documentationwill lead you to a "memory exhausted" error termination.HTH--Lew 这篇关于int main(void){return main(); }的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 21:37
查看更多