题目内容

以下程序的输出结果是___________。#includevoid fun(int x) {x=50;}void main(){int a=10;fun(a);printf("%d\n",a);}

查看答案
更多问题

下面程序的运行结果是___________。#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( );}

答案查题题库