Without using recursion how can a stack overflow exception be thrown?
int main() { //something on the stack int foo = 0; for ( //pointer to an address on the stack int* p = &foo; //forever ; //ever lower on the stack (assuming that the stack grows downwards) --p) { //write to the stack *p = 42; } }