Anonymous user
Find limit of recursion: Difference between revisions
Added BBC BASIC
(→{{header|gnuplot}}: incorporate the "try" initialization in the code rather than command line) |
(Added BBC BASIC) |
||
Line 181:
4 Out of memory, 110:1
}}}
=={{header|BBC BASIC}}==
<lang bbcbasic> PROCrecurse(1)
END
DEF PROCrecurse(depth%)
IF depth% MOD 100 = 0 PRINT TAB(0,0) depth%;
PROCrecurse(depth% + 1)
ENDPROC</lang>
Output from BBC BASIC for Windows with default value of HIMEM:
<pre>
37400
No room
</pre>
=={{header|Bracmat}}==
Line 190 ⟶ 204:
Bracmat crashes when it tries to exceed the maximum recursion depth.
=={{header|C}}==
<lang c>#include <stdio.h>
|