以下代码输出的值是: int x=4; void incre() { static int x=1; x*=x+1; printf(“%d”,x); } int _tmain(int argc,_TCHAR* argv[]) { int I; for(i=1;i<x;i++){ incre(); } return 0; } 2642 2 4 5
int x=4; void incre() { static int x=1; x*=x+1; printf(“%d”,x); } int _tmain(int argc,_TCHAR* argv[]) { int I; for(i=1;i<x;i++){ incre(); } return 0; }
2642
2
4
5