有以下程序
#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,2
B.4,1
C.3,4
D.2,3
参考答案:D
解析: 题目中定义了一个结构体数组,其中dt[0].x=1,dt[0].y=2,dt[1].x=3,dt[1].y=4,指针p指向结构体数组的第1个元素,那么p->x的值为1,p->y的值为2,所以输出的结果为2,3。