问题

有以下程序

#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)2,3

C)3,4

D)4,1

参考答案
您可能感兴趣的试题
  • 设有宏定义 :#define IsDIV(k,n) ((k%n==1)?1:0) 且变量 m 已正确定义并赋值 ,则宏调用 :IsDIV(m,5)&&IsDIV(m,7) 为真时所要表达的是A) 判断
  • 有以下程序#include main(){ int a=5,b=1,t;t=(a$amp;}程序运行后的输出结果是A)21B)11C)6D)1
  • 有以下程序#include main(){ FILE *f;f=fopen(filea.txt,w);fprintf(f,abc);fclose(f);}若文本文件 fi
  • 符合结构化原则的三种基本控制结构是:选择结构、循环结构和 【 3 】 。
  • 数据库系统的核心是 【 4 】 。
  • 在 E-R 图中,图形包括矩形框、菱形框、椭圆框。其中表示实体联系的是 【 5 】 框。