问答题

以下程序的输出结果是______。
struct HAR
int x,y;struct HAR*p;h[2];
main()
h[0].x=1;h[0].y=2;
h[1].x=3;h[1].y=4;
h[0].p=&h[1];h[1].p->y);
printf("%d%d\n",(h[0].p)->x,(h[1].p)->y);

【参考答案】

D
<上一题 目录 下一题>
热门 试题

单项选择题
下面的程序执行后,文件test.t中内容是______。 #include<stdio.h> void fun(char *fname,char *st) FILE*myf; int i; myf=fopen(fname, W ); for(i=0;i<strlen(st);i++)foutc(st[i]myf; fclose(myf); main() fun( test.t , new world );fun( test.t , hello, );
A.hello,
B.new worldhello
C.new world
D.hello,rid
填空题
实现算法所需的存储单元多少和算法的工作量大小分别称为算法的 【1】 。
相关试题
  • 以下程序段打开文件后,先利用fseek函数将...
  • 下面的程序可列指定字符串中的字符串进行从...
  • 若有如下结构体说明: struct STRU int...
  • 以下程序输出的最后一个值是 【8】 。 ...
  • 下列程序的输出结果是 【9】 。 main(...