一維數組的總結及問題

一維數組的總結及問題 一.總結 二.define和const的區別 三.數組什麼時候分配內存?什麼時候分配大小?數組最多分配多大內存? 四.&arr和arr的區別 一.總結 1.關於const ①const修飾的變量,不能被改變 被const修飾的東西都受到強制保護 ②const定義變量的同時,必須初始化 定義const只讀變量,具有不可變性,例如: const int MAX=100; int
相關文章
相關標籤/搜索