Can you give an example of stack overflow in C++? Other than the recursive case:
void foo() { foo(); }
Infinite recursion:
void infiniteFunction() { infiniteFunction(); } int main() { infiniteFunction(); return 0; }