Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 188 Bytes

memory_management_stack_overflow.md

File metadata and controls

18 lines (15 loc) · 188 Bytes

Stack overflow

  • There is a limit on a stack size (OS dependent)
int foo()
{
    double x[1048576];
    x[0] = 10;
    return 0;
}

int main()
{
    foo();
    return 0;
}