以下程序运行结果是( )__________。void main( ){int max(float a,float b);float x,y;int z;x=-4.6; y=-3.7; z=max(x,y);printf("%d\n",z);}int max(float a,float b){ float c;if(a>b) c=a;elsec=b;return (c);}
A. -3.7
B. -3
C. -4.6
D. -4
查看答案
以下程序的运行结果是_______。int fun(int array[3][3]){ int j;for(j=0;j<3;j++) array[1][j]++;printf("\n");}main(){ int j,a[3][3]={0,1,2,1,0,4,2,4,5};fun(a);for(j=0;j<3;j++)printf("%2d",a[1][j]);printf("\n");}
A. 2 1 5
B. 1 0 4
C. 0 1 2
D. 1 2 3
C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是_________。A.void B.long C.int D.double
A. void
B. long
C. int
D. double
以下程序的运行结果是_______。int f(int c){ c+=2;return c ;}main(){ int a=2,c=5;a=f(a);printf("%d %d \n",a ,c);}
A. 4 4
B. 4 5
C. 2 4
D. 2 5
以下程序的运行结果是_______。int a=2,b=3;int min(int a,int b){ int c;c=a
A. 2,3
B. 2
C. 3
D. 4