![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 疑難雜症區
(https://www.pcdvd.com.tw/forumdisplay.php?f=34)
- - C語言的int資料型態
(https://www.pcdvd.com.tw/showthread.php?t=658197)
|
---|
C語言的int資料型態
請問為何C語言的int型態沒有明確的大小,
在Dev C為4bytes,Turbo C為2bytes? 又跟硬體平台有何關係!? 我只知道int大小定義為1word,假CPU為16bits則int就是16bits. 這樣做是因為考慮到程式的移植性嗎!? 那各種Compiler中int的大小為何不統一!? 請知道的幫我解答,謝謝. |
所有的時間均為GMT +8。 現在的時間是04:16 AM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2025。