That's a buffer overflow, not a stack overflow. That code will trash the stack, but you might see an access violation crash if you're lucky. It won't trigger a stack overflow, which will only occur if you call too many functions - usually through recursion.
void f()
{
f(); // <-- stack overflow sure to happen
}
If you're looking for something to happen, there is no guarantee that it will. Writing past the end of an array is undefined behavior. If the system detects what you're doing it will almost certainly crash you, but if you're just overwriting memory that actually does belong to your process it might not happen until you write way past the end.