【简答题】有以下程序 struct S{ int n int a[20] } void f(int *a,int n) { int i for(i=0i } main( ) { int i struct S s={10,{2,3,1,6,8,7,5,4,10,9}} f(s.a,s.n) for(i=0i } 程序运行后的输出结果是 A)2,4,3,9,12,12,11,11,18,9, B)3,4,2,7...
【简答题】include class A { private: int x,y; public: void f1(int i=0,int j=0){x=i;y=j;} void print(){cout$amp; void f1(int i=0){x=i,y=0;} }; void main() { A a; a.f1(5); a.print(); }