The call stack has a maximal size, set when the program starts. A stack overflow happens when a call needs a frame that does not fit in it any more. In C it is not reported by the language: the program writes past the end of the stack region, and the system stops it.
Computer Science · المسرد