单项选择题
有以下程序
#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
热门试题
单项选择题有以下程序 #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