一、程序代码例子
#include "stdio.h" main() { int i; char s1[5]={'a','b','c','d','e'};//正常打印,但有乱码 //char s2[5]={'a','b','c','d','e',' '};//报错 char s3[6]={'a','b','c','d','e'};//正确,末尾自动补零 char s4[6]={'a','b','c','d','e','
一、程序代码例子
#include "stdio.h" main() { int i; char s1[5]={'a','b','c','d','e'};//正常打印,但有乱码 //char s2[5]={'a','b','c','d','e',' '};//报错 char s3[6]={'a','b','c','d','e'};//正确,末尾自动补零 char s4[6]={'a','b','c','d','e','