關於length的幾個點

C語言: 問題1: 結果:it okit (如果存儲空間連續的話) 問題2: int main(){ char str[] ="hello";            //字符串,後面有’\0’。所以可以不初始化長度 // char str[6] ="hello";         //不能寫5,否則後果不堪設想。。 char s[] = {'a','b','c','e'};         //字
相關文章
相關標籤/搜索