C語言中的數組小結

一維數組 數組的概念:一組相同元素的集合。 type_t(類型)  arr_name(數組名)[const_n](常量表達式<數組大小>) eg: int n = 0; scanf("%d",&n); int arr[n];                此處錯誤,不能爲變量應需常量 初始化: 舉例: int a[3+5] = {1,2,3};         不完全初始化,數組裏內容爲12300
相關文章
相關標籤/搜索