3 ms·
It won't compile ;) (no stdlib.h/string.h) And it won't crash the server (at least... should not). There is a fixed limit on how much memory a process can allo
by gacek 17y ago
It won't compile ;) (no stdlib.h/string.h)
And it won't crash the server (at least... should not). There is a fixed limit on how much memory a process can allocate. This program will crash, but not because of malloc, just because the recursion gets too deep (stack overflow).
- onewland 17y agoMaybe it won't compile, but: /spoj/c_run: line 5: 3844 Segmentation fault ./prog is the error I got, and that doesn't look like a compile error. (Also, just to be pedantic, I had noted the stack overflow possibility in my original post). http://ideone.com/view/09u9091w9h# http://ideone.com/view/09u9091w9h# is the snippet.