单项选择题
有以下程序
#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.2,3
B.4,1
C.3,4
D.1,2
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若有以下程序段 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> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
以下程序依次把从终端输入的字符存放到f文...