填空题

下面的程序是将从终端读入的20个字符放入字符数组中,然后利用指针变量输出上述字符串,请填空。 #include<stdio.h> main() { int i; char s[21],*p; for(i=0;i<20;i++) s[i]=getehar(); s[i]= 【6】 ; p= 【7】 ; while(*p) putchar( 【8】 ); }

【参考答案】

"\0" s *p++