单项选择题
有以下程序:
#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
点击查看答案
相关试题
有以下程序: #include <string.h> ...