笔果题库
高级语言程序设计
VIP题库
搜题找答案,就上笔果题库
设有以下语句: struct st{int n;struct st*next;}; static struct sta[3]={5,&a[1],7,&a[2],9'\0'},*p; p=&a[0]; 则值为6的表达式是()
搜题找答案,就上笔果题库
设计结构型,包含学生的编号、姓名、任课教师姓名。编程序,输人100名学生的信息存人结构型数组,再输人某位教师的姓名,然后统计出选学该教师的学生数目并输出。
搜题找答案,就上笔果题库
设有下列数据定义语句,则表达式值是字母M的是()struct  P { char name [10];int age;};struct P c [3] = {{”Johri”,17},{”Paul”,19},{”Mary”,18}};
搜题找答案,就上笔果题库
若有下面的说明和语句则表达式值为31的是() struct wc {int a; Int*b }*p; intx[]={11,12},x1[]={31,32}; static struct wsx[2]={100,x0,300,xl}; p=x;
搜题找答案,就上笔果题库
设有定义语句“typedef int*POINT;”,则和定义语句“POINTx[5];”作用相同的数据定义语句是____。
搜题找答案,就上笔果题库
struct H {int x;int *y;int xy[2];}void f(struct  H*p) {(p+1)->x=10; (*p).x=20; (*p).y=&((*(p+1)).x); (*(p+1)).y=&(p->x); } main() {struct H*q=xy; f(q); printf("%d,%d\n",*(q->y),*(xy[0].y)); }
搜题找答案,就上笔果题库
设有数据定义语句“struct{inta;floatb;}ab,*p_ab=&ab;”,若使用ab来引用ab的成员a,可以写成____或____[若使用p-ab来引用ab的成员a,可以写成____或____。
搜题找答案,就上笔果题库
下列程序段的输出结果是()typedef    double  A[3];A   a;printf(”%d”,sizeof(a[2]));
搜题找答案,就上笔果题库
阅读程序,写出程序的运行结果。 main() {struct student {char name[10]; float kl; float k2;} a[2]={{"zhang",100,70},{"wang",70,80}},*P=a; inti; printf("\nname:%stotal=%f\n",P->name,P->k1+P->k2); printf("\nname:%stotal=%f\n"a[1].name,a[1].kl+a[1].k2); }
搜题找答案,就上笔果题库
设有下列数据定义语句,则表达式“++p->b”的值是____。structAB{inta;floatb;}ab[2]={{4,3},{2,1}},*p=ab;