Ⅰ c语言中如何定义字符串
可以用数组或指针
数组:
char s[80]="abcd";或者char s[80]={"abcd"}; /*说明:自动加字符串结束标志: */
char s[80]={"a","b","c","d","