单项选择题

以下程序的输出结果是______。
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);

A.12
B.23
C.14
D.32
<上一题 目录 下一题>
热门 试题

单项选择题
下面的程序执行后,文件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
单项选择题
下列不属于软件调试技术的是______。
A.强行排错法
B.集成测试法
C.回溯法
D.原因排除法
相关试题
  • 以下程序段打开文件后,先利用fseek函数将...
  • 下面的程序可列指定字符串中的字符串进行从...
  • 若有定义语句char s[100],d[100...
  • 若有如下结构体说明: struct STRU int...
  • 以下程序输出的最后一个值是 【8】 。 ...