填空题

以下程序的输出结果是______。
main()
char s[]="abcdef";
s[3]=’\0’;
printf("%s\n",s);

【参考答案】

abc。
<上一题 目录 下一题>
热门 试题

填空题
指针变量p和数组a的说明如下: int*a[3]= aa , bb , cc ,**p; 执行语句p=&a[2];后,*p指向的字符串是______。
填空题
以下程序的运行结果是______。 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);
相关试题
  • 下面程序把从终端读入的文本(用#作为文本...
  • 以下程序的功能是:从键盘输入一字符串,要...
  • 以下程序的运行结果是______。 stru...
  • 下列程序的输出结果是______。 main...