填空题
以下程序的运行结果是______。
struct Node
int x;
char ch;
;
fun(struct Node*sn)
static k=1;
sn->x=20;
Sn->ch=’a’+k++;
main()
int i;
static struct Node st=10,’a’;
for(i=0;i<2;i++)
fun(&st);
printf("%d,%c\n",st.x,st.ch);
【参考答案】
B0,c。
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
分析下列程序: main() int x=1,y=0,a=0,b=0; switch(a) case 1:switch(b) case 0:x++; case 1:y++;break; case 2:x++;y++;break; printf( x=%d,y=%d n ,x,y); 运行程序的输出结果是______。
点击查看答案&解析
填空题
程序如下: main() int i=4; printf( %d ,-++i); 该程序执行后的输出结果以及i的值分别是______ 、_______。
点击查看答案&解析
相关试题
下面程序把从终端读入的文本(用#作为文本...
以下程序的功能是:从键盘输入一字符串,要...
以下程序的运行结果是______。 stru...
下列程序的输出结果是______。 main...
以下程序的输出结果是______。 main...