1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
|
#include <iostream>
using namespace std;
int test(int v)
{
i = i + v;
{
int j;
for (j = 0; j < 10; j++)
i = i + j;
}
return i;
}
int main()
{
cout << test(1) << endl; // 46
cout << test(1) << endl; // 46
return 0;
}
|