填空题
下列程序的运行结果是
【10】
。 #include <stdio.h> main() { union EXAMPLE { struct { int x; int y;} in; int a; int b; }e; e.a=1;e.b=2; e.in.x=e.a*e.b; e.in.y=e.a+e.b; printf("%d,%d\n",e.in.x,e.in.y); }
【参考答案】
D,H
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
函数mycmp(char *s,char *t)的功能是比较字符串s和t的大小,当s等于t时返回0,当s>t时返回正值,当s<t时返回负值。请填空。mycmp( char *s,char *t){ while ( *s==*t){ if(*s= =’ 0’) return 0;++s; ++t;}return( 【11】 );}
点击查看答案&解析
填空题
以下程序的输出结果是 【9】 。#include <stdio.h>void fun(){ static int a=0;a + =2;printf( %d ,a);}main(){ int cc;for(cc = 1;cc < 4; cc++) fun();printf( n );}
点击查看答案&解析
相关试题
在对文件进行操作的过程中,若要求文件的位...
以下函数inverse的功能是使一个字符串按逆...
下列程序的字符串中各单词之间有一个空格,...
执行以下程序段后,s的值为 【15】 。s...
以下程序的输出结果是 【14】 。#incl...