(37)有以下程序#include struct ord{ int x,y;} dt[2]={1,2,3,4};main(){ struct ord *p=dt;printf (“%

8 查阅

(37)有以下程序

#include

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)2,3 C)3,4 D)4,1

参考答案:

B

计算机二级