下面程序的运行结果是___________。#includevoid fun(){int a=0;a+=3;printf("%d ",a);}void main(){int cc;for(cc=1;cc<=4;cc++) fun();printf("\n");}
查看答案
下面程序的运行结果是___________。#includeint t(int x,int y,int cp,int dp){cp=x%y+y*y;dp=x+x-y*y;}void main(){int a=4,b=3,c=9,d=8;t(a,b,c,d);printf("%d %d\n",c,d);}
以下程序的运行结果是___________。#includeint a=5;int b=7;plus(int x,int y){int z;z=x+y;return(z);}void main(){int a=4,b=5,c;c=plus(a,b);printf("A+B=%d\n",c);}
以下程序的输出结果是___________。#includevoid increment( ){static int x=0;x+=1;printf("%d",x);}void main(){increment( );increment( );increment( );}
下面程序的运行结果是___________。#includeint func(int a){int b=0,c=3;b++;c++;return(a+b+c);}void main( ){int a=2,i;for(i=0;i<3;i++)printf("%d",func(a));}