单项选择题
有下列程序:
#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,",++p->y);
程序的运行结果是( )。
A.1,2
B.2,3
C.3,4
D.4,1
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有下列程序: #include<stdio.h> int f(int x,int y) return((y-x)*x);) main() int a=3,b=4,c=5,d; d=f(f(a,b),f(a,c)); printf( %d n ,d); 程序运行后的输出结果是( )。
A.10
B.9
C.8
D.7
点击查看答案&解析
单项选择题
下列选项中,能用做数据常量的是( )。
A.o115
B.o118
C.1.5e1.5
D.115L
点击查看答案&解析
相关试题
有下列程序: #include<stdio.h> mai...
有下列程序: #include<stdio.h> int...
有下列程序: #include<stdio.h> voi...
有下列程序: #include<stdio.h> voi...
有下列程序: #include<stdio.h> int...