#include<stdio.h>
struct ord
{int x,y;} dt[2]={1,2,3,4};
main()
{
struct ord*p=dt;
printf(“%d,”,++(p一>x));printf(“%d\n”,++(p一>y));
}
程序运行后的输出结果是
A.1,2
B.4,1
C.3,4
D.2.3
[单选题]有以下程序#include <stdio.h>struct ord{ int x,y; } dt[2]={1,2,3,4};main(){ struct ord *p=dt;printf("%d,",++p->x); printf("%d/n",++p->y);}程序的运行结果是A.)1,2B.)2,3C.)3,4D.)4,1
[单选题]有以下程序#include<stdio.h>struct S{int a,b;} data[2]={10,100,20,200};main(){struet S p=data[l];printf(“%d\n”,++(P.a)):}程序运行后的输出结果是A.10B.11C.20D.21
[单选题](37)有以下程序#include <stdio.h>struct ord{ int x,y;} dt[2]={1,2,3,4};main(){ 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
[单选题](37)有以下程序#include <stdio.h>struct ord{ int x,y;}dt[2]={1,2,3,4};main(){struct ord *p=dt;printf("%d,",++(p->x)); printf("%d/n",++(p->y));}程序运行后的输出结果是A.)1,2B.)4,1C.)3,4D.)2,3
[单选题]有以下程序#include<stdio.h>int fun(int X,int y){if(x!=y) return((x+y)/2):else return(x):}main() .{int a=4'b=5,c=6:printf(“%d\n”,fun(2*a,fun(b,c))):}程序运行后的输出结果是A.3B.6C.8D.12
[单选题]有以下程序#include <stdio.h>struct st{ int x, y, z;} data[2]={3,10,2,20,15,7};main(){ struct st *p=data; printf("%d,", p->y); printf("%d/n",(++p)->x); }程序的运行结果是A.10,3 B.20,3 C.10,20 D.20,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;}}程序的运行结果是A.)20,30,B.)30,17C.)15,30,D.)20,15,
[单选题]有以下程序#include <stdio.h>struct st{ int x,y;} data[2]={1,10,2,20};main(){ struct st *p=data;printf("%d,",p->y); printf("%d/n",(++p)->x);}程序的运行结果是A.)10,1B.)20,1C.)10,2D.)20,2
[单选题](24)有以下程序#include<stdio.h>int f(int x,int y){return()y-x)*x);}main(){int a=3,b=4,c=5,d;d=f(f(a,b),f(a,c));printf(“%d/n”,d);}程序运行后的输出结果是A.)10 B)9 C)8 D)7
[单选题]有以下程序:include<stdio.h>int f(int x):main{int n=1,m;m=f(f(f(n)));printf("%d/n",m);}int f(int x){return x*2;)程序运行后的输出结果是( )。A.1B.2C.4D.8