有以下程序 #include<stdio.h> struct ord { int x,y;} dt[2]={1,2,3,4}; mare() { struct ord*p=dt; printf("%d,",++p->x); printf("%d/n",++p->y); } 程序的运行结果是______。
A.1,2
B.2,3
C.3,4
D.4,1
[单选题]有以下程序includestruct ord{ int x,y;} dt[2]={1,2,3,4};mare(){struct ord*p=dt; p有以下程序 #include<stdio.h> struct ord { int x,y;} dt[2]={1,2,3,4}; mare() { struct ord*p=dt; printf("%d,",++p->x); printf("%d/n",++p->y); } 程序的运行结果是______。A.1,2B.2,3C.3,4D.4,
[单选题]有以下程序:includestruct tt{int x;struct tt*y;}*p;struct tt a[4]={20,a£«1,15,a£«2,有以下程序: #include<stdio.h> struct tt {int x;struct tt*y;}*p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a} main() { int i; p=a; for(i=1;i<=2;i++){printf("%d",p->x);p=P->y;} } 程
[单选题]有以下程序:includestruct tt{ int x;struct tt *y;} *p;struct tt a[4]={20,a£«1,15,a有以下程序: #include<stdio.h> struct tt { int x;struct tt *y;} *p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a}; main() {int i; p=a; for(i=1;i<=2;i++) {printf("%d,",p->x);p=p->y;}
[单选题]以下程序的输出结果是( )。 {int x;int*y;}*p; int dt[4]={1,2,3,4}; struct st aa[4]={2,&dt[0],3,&dt[0],4,&dt[0],5,&dt[0],}; {p=aa; pfintf("%d/n",++(p->x)); }A.1B.2C.3D.4
[单选题]有以下程序:#include
[单选题]以下程序的输出结果是()。includestruct st{int x;int*y;}*p; int dt[4] ={ 10,20,30,4以下程序的输出结果是( )。 #include<stdio.h> struct st { int x; int *y;} *p; int dt[4] ={ 10,20,30,40 }; struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]}; main() { p=
[单选题]有以下程序fun(int x, int y){ return (x+y); }main(){ int a=1, b=2, c=3, sum;sum=fun((a++,b++,a+b),c++);printf("%d/n",sum);}执行后的输出结果是A.)6B.)7C.)8D.)9
[单选题]有以下程序includeint fun(int x;int y){if(x=y)reurn(x); elsereturn((x£«y)£¯2);}main有以下程序 #include<stdio.h> int fun(int x;int y) { if(x=y)reurn(x); else return((x+y)/2); } main() { int a=4,b=5,c=6; printf("%d/n",fun(2*a,fun(b,c))); } 程序运行后的输出结果是______。A.3
[单选题]有以下程序 int *f(int *x,int *y) { if(*x<*y) return x; else return y; } main( ) { int a=7,b=8,*p,*q,*r; p=&a; q=&b; r=f(p,q); printf("%d,%d,%d/n",*p,*q,*r); } 执行后输出结果是A.7,8,8B.7,8,7C.8,7,7D.8,7,8
[单选题]有以下程序 fun(int x,int y){return(x+y);} main() { int a=1,b=2,c=3,sum; sum=fun((a++,b++,a+b),c++); printf("%d/n",sum); }A.6B.7C.8D.9