填空题
以下程序的输出结果是______。 main() { char s[]="abcdef"; s[3]=’\0’; printf("%s\n",s); }
【参考答案】
abc。
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的运行结果是______。struct exmp{char name [10];int number;};struct exmp test[3]={{ WangXi ,1},{ QiYu ,2},{ HuHua ,3}};main(){printf( %c,%s n ,test[0].name[1],test[2].name+3);}
点击查看答案&解析
填空题
指针变量p和数组a的说明如下:int*a[3]={ aa , bb , cc },**p;执行语句p=&a[2];后,*p指向的字符串是______。
点击查看答案&解析
相关试题
下面程序把从终端读入的文本(用#作为文本...