单项选择题

有以下程序:
#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
<上一题 目录 下一题>
热门 试题

单项选择题
在C语言中,只有在使用时才占用内存单元的变量,其存储类型是( )。
A.auto和register
B.extern和register
C.auto和static
D.static和register
单项选择题
有以下程序: #include <stdio.h> struct st int x,y;data[2]=1,10,2,20; main() struct st *p=data; printf( %d, ,p->y); printf( %d n ,(++p)->x); 程序的运行结果是( )。
A.10,1
B.20,1
C.10,2
D.20,2
相关试题
  • 以下程序运行后输出的结果是______。...
  • 下列程序的输出结果是______。 void...
  • 已知数字 0 的ASCⅡ码值为48,在程序...
  • 若输入字符串:abcde ,则以下while循环体...
  • 以下程序运行后输出的结果是______。...