概述
字符串的定义和与初始化
1.用字符型数组初始化
char ch[12];
ch[0] = 'H';ch[1] = 'e';······
或者char ch[12] = {'H','e',······}
2.用字符串常量初始化
char ch1[14] = {"Programming!"};
//或
char ch1[14] = "Programming!"; //占14字节,结尾 (结束标记符) 还有一个
char ch2[ ] = {"Programming!"};
//或
char ch2[ ] = "Programming!"; //占13字节,结尾 (结束标记符)
所谓自动加'