當前位置:首頁 » 編程語言 » c語言8位元組

c語言8位元組

發布時間: 2025-01-13 02:38:51

㈠ C語言中 int long float double分別佔用了多少個位元組

char/signed char/unsigned char: 1個位元組;
char*(即指針變數):
2個位元組(16位編譯器)
4個位元組(32位編譯器)
8個位元組(64位編譯器)
short int: 2個位元組
int/unsigned int:
2個位元組(16位編譯器)
4個位元組(32/64位編譯器)
long int: 4個位元組
float: 4個位元組
double: 8個位元組
long double: 8/10/12/16?
long/unsigned long:
4個位元組(16/32位編譯器)
8個位元組(64位編譯器)
long long: 8個位元組
string: 字元個數+1

上面的只是參考,具體的長度你可以在你的編譯器中使用sizeof關鍵字分別求出來。

熱點內容
頁面訪問在線升級 發布:2025-09-18 19:13:46 瀏覽:772
相機存儲滿 發布:2025-09-18 19:12:19 瀏覽:753
如何搭載我的世界伺服器 發布:2025-09-18 19:02:39 瀏覽:424
c語言組框 發布:2025-09-18 19:02:23 瀏覽:940
如何看見真我手機的全部配置 發布:2025-09-18 18:48:10 瀏覽:972
戰地5默認是什麼伺服器 發布:2025-09-18 17:59:32 瀏覽:307
安卓變ios系統主題怎麼弄 發布:2025-09-18 17:54:07 瀏覽:886
linux出口ip 發布:2025-09-18 17:51:57 瀏覽:947
androidbitmap使用 發布:2025-09-18 17:49:20 瀏覽:241
數字日期加密 發布:2025-09-18 17:43:46 瀏覽:508