阅读程序,写出运行结果。
#include
using namespace std;
int sub( int, int );
int a = 1;
int main()
{ int m = 1, n = 2, f;
f = sub( m, n );
cout << a << '\t' << f << endl;
f = sub( m, n );
cout << a << '\t' << f << endl;
}
int sub( int c, int d )
{ static int m = 2, n = 5;
cout << m << '\t' << n << '\t' << endl;
a = ++a; c = m++; d = n++;
return c + d;
}