单项选择题
有以下程序:
#include <stdio.h>
stxuct tt
int x;struct tt *y;*p;
struct tt a[4]=20,a+1,15,a+2,30,a+3,17,a;
main()
int i;
p=a;
for(i=1;i<=2;i++) printf("%d,",p->x ); p=p->y;
程序的运行结果是( )。
A.20,30,
B.30,17
C.15,30,
D.20,15,
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include <stdio.h> main() char c1,c2,c3,c4,c5,c6; scanf(%c%c%c%c,&c1,&c2,&c3,&c4); c5=getchar(); c6=getchar(); putchar(c1); putchar(c2); printf(%c%c n,c5,c6); 程序运行后,若从键盘输入(从第1列开始) 123<回车> 45678<回车> 则输出结果是( )。
A.1267
B.1256
C.1278
D.1245
点击查看答案&解析
单项选择题
有以下程序: void change(int k[])k[0]=k[5]; main() int x[10]=(1,2,3,4,5,6,7,8,9,10,n=0; while(n<=4) change(&x[n]);n++; for(n=0;n<5;n++) printf( %d ,x[n]); printf( n ); 程序运行后输出的结果是( )。
A.6 7 8 9 10
B.1 3 5 7 9
C.1 2 3 4 5
D.6 2 3 4 5
点击查看答案&解析
相关试题
以下程序企图把从终端输入的字符输出到名为...
有以下程序: fun(int x,int y) sta...
有以下程序: #include <stdlib.h> ...
有以下程序: int a=4; int f(int...
以下程序中函数sort的功能是对a所指数组中...