下列程序的输出结果是 #include<iostream.h> void f() { static int i=15; i++; cout<<"i="<<i<<endl; } void main(){ for(int k=0;k<2;k++) f(); } i=16 i=15 i=15 i=17 i=16 i=17 i=15 i=16 i=15 i=18
#include<iostream.h> void f() { static int i=15; i++; cout<<"i="<<i<<endl; } void main(){ for(int k=0;k<2;k++) f(); }