linux c數組和指針(詳解)

原文地址http://www.freecls.com/a/2712/1d 普通數組聲明linux //聲明數組 int arr[3]; int arr[3] = {1,2,3}; //由編譯器自動指定數組大小 int arr[] = {1,2,3} //多維數組 int arr[2][2] = {{1,2}, {3,4}} 數組變量名自己就是數組的地址,數組跟指針的關係很密切centos in
相關文章
相關標籤/搜索