单项选择题

若有以下程序段
struct st int n;struct st*next;;
struct st a[3]=5,&a[1],7,&a[2],9,’\0’,*p;
p=&a[0];
则以下选项中值为6的表达式是______。

A.++(p->n)
B.(*p).n
C.p->n++
D.p->n
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 #include<stdio.h> #include<stdlib.h> main() int*a,*b,*c; a=b=c=(int*)malloc(sizeof(int)); *a=1;*b=2,*c=3; a=b; printf( %d,%d,%d n ,*a,*b,*c); 程序运行后的输出结果是______。
A.3,3,3
B.2,2,3
C.1,2,3
D.1,1,3
单项选择题
有以下程序 #include<stdio.h> #include<stdlib.h> void fun(int*p1,int*p2,int*s) s=(int*)malloe(sizeof(int)); *s=*p1+*(p2++); main() int a[2]=1,2,b[2]=10,20,*s=a; fun(a,b,s);printf( %d n ,*s); 程序运行后的输出结果是______。
A.1
B.10
C.11
D.2
相关试题
  • 有以下程序 #include<stdio.h> main...
  • 有以下程序 #include<stdio.h> main...
  • 有以下程序 #include<stdio.h> main...
  • 有以下程序 #include<stdio.h> main...
  • 以下程序依次把从终端输入的字符存放到f文...