A.10,3
B.20,3
C.10,20
D.20,2
[单选题]有以下程序#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
[单选题]有以下程序#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 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 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>struct stu{ int num; char name [10];int age;};Void fun(struct stu *p){ printf("%s\n,p->name);}main( ){ struct stu x[3]={ {01,”Zhang”,20},{02, ” Wang”,19},{03, ”zhao”,18} };fun(x+2);}程序运行后的输出结果是A.)ZhangB.)ZhaoC.)WangD.
[单选题](38)有以下程序#include <stdio.h>struct S{ int a,b;}data[2]={10,100,20,200};main(){ struct S p=data[1];printf("%d/n",++(p.a));}程序运行后的输出结果是A.)10B.)11C.)20D.)21
[单选题]有以下程序#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
[单选题](34)有以下程序#include <stdio.h>int fun(){ static int x=1;x*=2;return x;}main(){ int i,s=1;for(i=1;i<=3;i++) s*=fun();printf("%d/n",s);}程序运行后的输出结果是A.)0B.)10C.)30D.)64
[单选题]有以下程序#include <stdio.h>int f(int x){ int y;if(x==0||x==1) return(3);y=x*x-f(x-2);return y;}main( ){int z;z=f(3); printf("%d/n",z);}程序的运行结果是A.)0B.)9C.)6D.)8
[单选题]有以下程序#include <stdio.h>int fun(int x,int y){ if(x==y) return (x);else return((x+y)/2);}main(){ int a=4,b=5,c=6;printf("%d/n",fun(2*a,fun(b,c)));}程序运行后的输出结果是A.)3B.)6C.)8D.)12