lor*_*orb 2 c++ segmentation-fault
#include <iostream> using namespace std; int recur(int x) { 1 and recur(--x); cout << x; return x; } int main() { recur(10); return 0; }
Nav*_*een 5
这是一个无限的递归.因此当它耗尽堆栈空间时它将会出错.
归档时间:
15 年,10 月 前
查看次数:
475 次
最近记录: