筆試經驗(一)

分別寫出char,int,float,double 類型分別佔多少字節。 轉載:c中char int float double long所佔字節數 解析: 所佔字節數和機器字長及編譯器有關係: 所以,int,long int,short int的寬度都可能隨編譯器而異。但有幾條鐵定的原則(ANSI/ISO制訂的): 1 sizeof(short int)<=sizeof(int) 2 sizeof
相關文章
相關標籤/搜索