Wednesday, December 1, 2010

The main() function calling itself

The following program:int main() {return main();} recursively calls itself until the stack runs out causing a segmentation fault.

No comments:

Post a Comment