爲什麼,當我宣佈爲字符串,我需要用一個二維數組「*」在C中聲明二維數組的字符串與整數?
char *month[12][10] = {"January", "February", "March", "April",
"May", "June", "July", "August",
"September", "October", "November",
"December"};
,但是當我宣佈它整數,有沒有必要?
int numbers[2][3]={1,2,3,4,5,6};
順便提一下,'month'可以這樣寫:'char * month [] = {「January」,「February」,「March」,「April」,「May」,「June」, 「July 「,」August「,」September「,」October「,」November「,」December「};' – poige 2014-12-07 00:41:37