以下程序的运行结果是___________。#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));}
下面程序的运行结果是___________。#include #define EXCH(a,b) {int t;t=a;a=b;b=t;}void main(){int x=1,y=2;EXCH(x,y);printf("x=%d,y=%d\n",x,y);}