单项选择题
有下列程序:
#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> main() char a[2][4]; strcpy(a, are );strcpy(a[1], you ); a[0][3]='&'; printf( %s n ,a);
A) are&you
B) you
C) are
D) &
点击查看答案&解析
单项选择题
以下程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf( %d ,(int)(y)) #define P(y)w(y) main() int x=2; P(F(5)*x);
A) 12
B) 13
C) 14
D) 16
点击查看答案&解析
相关试题
下述函数统计字符串中的单词个数,单词是指...
以下程序运行后的输出结果是______。...
以下程序的输出结果是______。 floa...
以下程序中函数huiwen的功能是检查一个字符...
下列程序中,fun( )函数的功能是计算x2...