下列程序执行后输出的结果是________。int d=1;fun(int p){int d=5;d+=p++; printf("%d ",d);}main(){int a=3;fun(a);d+=a++; printf("%d\n",d); }
查看答案
下面程序的输出是________。fun3(int x){static int a=3;a+=x;return(a); }main(){int k=2,m=1,n;n=fun3(k);n=fun3(m);printf("%d\n",n); }
程序的输出结果:main( ){ increment ( ); increment ( ); increment ( ); }increment ( ){static int x=0; x+=1; printf (“%d”, x); }
以下程序的输出结果是 。#include void f(int c){ int a=0;static int b=0;a++;b++;printf("%d: a=%d, b=%d\n", c, a, b);}void main(void){ int i;for (i=1; i<=3; i++) f( i );}
以下程序的输出结果是。#include void increment(void);void main(void){increment();increment();}void increment(void){static int x = 8;x ++;printf("x = %d\n", x);}