Linux中c语言中汉字字符串的输出
#include<stdio.h>int main()
{
int i;
char a[10][3]={"一","和","三","四","物","社","嗯","阶","己","嗯"};
for(i=0;i<10;i++)
printf("%s\n",a[i]);
return 0;
}
output
一和三四物社嗯阶己嗯
和三四物社嗯阶己嗯
三四物社嗯阶己嗯
四物社嗯阶己嗯
物社嗯阶己嗯
社嗯阶己嗯
嗯阶己嗯
阶己嗯
己嗯
嗯
本人想法是单个输出,可是结果却是上面的output
请大侠指教