下面程序的运行结果是___________。#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));}
以下程序的运行结果是___________。#include #define MAX(a,b) (a>b?a:b)+1void main(){int i=6,j=8,k;printf("%d\n",MAX(i,j));}