题目内容
写出下列程序的执行结果是:__________________。#includeusing namespace std;int sub( int, int );int a = 1 ;void main(){ int m = 1, n = 2, f; f = sub( m, n ); f = sub( m, n ) ; cout << a <<","<< f << endl;}int sub( int c, int d ){ static int m = 2, n = 5 ; a = ++ a ; c = m ++ ; d = n ++; return c + d ;}
查看答案
搜索结果不匹配?点我反馈
更多问题