函数用指针传参挂死分析

int funcA(int a,int b)
{
short c = 0;
funcB(&c);
}

int funcB(int* c )
{
*c = 5;
}

如果调用funcA,函数的栈被破坏,函数运行错误,挂死。

原文地址:https://www.cnblogs.com/elseliving/p/7895265.html