As per edit :-)
void ping()
{
pong();
}
void pong()
{
ping();
}
Also, I believe you can get stack overflow if you try to allocate more space than maximum thread stack size ( 1MB by default in VS), so something like int a[100000];
should provide the exception.