Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:为什么在函数里设一个1000*1000的int数组会RE,把它放到全局变量之后AC呢In Reply To:为什么在函数里设一个1000*1000的int数组会RE,把它放到全局变量之后AC呢 Posted by:zaker at 2009-10-05 18:41:24 函数内部的变量在栈区,而栈区的空间是有限的。 全局变量放在堆区(程序区)那里空间比栈空间大很多。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator