如题。

解决方案 »

  1.   

    int n[20];
    n[19]=100;//right
    n[20]=100;//overflow;
    n[21]=100;//overflow;
      

  2.   

    1.定义数组时下标过大.
    2.函数调用深度过大.----一般是程序出现了BUG,多个函数间相互循环调用
      

  3.   

    inside a local function, if you type like this:
     
    char p[9999999999];when you run the application, stack overflow must appear.
      

  4.   

    1) Allow too much on the stack (same as nightsuns)
    2) Recursion too deep or endless recursion.
    3) Too many nested function calls, especailly in kernel mode.
    4) If you use assembly code, just call push eax in a loop.Feng Yuan [MSFT] (www.fengyuan.com, blog.joycode.com/fyuan)