出处:http://bbs.pediy.com/showthread.php?t=51839 在看雪论坛看了一道很好的C语言题,细细地思考,很能洞穿语言的运行机制,题目大概是这样的:如何在下面的test函数里加入代码,使程序运行起来输入和输出的相等? #include void test() { int t; scanf("%d",&t); //在这里加入代码...... } void main() { int m; test(); printf("m=%d",m); } 这道题目让我联想到了以前学习缓存区溢出原理的一些感悟。聪明得你答案是什么样得呢? 本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/oyuer123/archive/2009/06/02/4236828.aspx