久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

sizeof(some pointer) 總是等于四嗎?

Is the sizeof(some pointer) always equal to four?(sizeof(some pointer) 總是等于四嗎?)
本文介紹了sizeof(some pointer) 總是等于四嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

例如:sizeof(char*) 返回 4.與 int*、long long* 一樣,我嘗試過的一切.這有什么例外嗎?

For example: sizeof(char*) returns 4. As does int*, long long*, everything that I've tried. Are there any exceptions to this?

推薦答案

你得到的保證是 sizeof(char) == 1.沒有其他保證,包括不保證 sizeof(int *) == sizeof(double *).

The guarantee you get is that sizeof(char) == 1. There are no other guarantees, including no guarantee that sizeof(int *) == sizeof(double *).

實際上,指針在 16 位系統上的大小為 2(如果你能找到的話),在 32 位系統上為 4,在 64 位系統上為 8,但是依靠在給定的尺寸上.

In practice, pointers will be size 2 on a 16-bit system (if you can find one), 4 on a 32-bit system, and 8 on a 64-bit system, but there's nothing to be gained in relying on a given size.

這篇關于sizeof(some pointer) 總是等于四嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Algorithm to convert RGB to HSV and HSV to RGB in range 0-255 for both(將 RGB 轉換為 HSV 并將 HSV 轉換為 RGB 的算法,范圍為 0-255)
How to convert an enum type variable to a string?(如何將枚舉類型變量轉換為字符串?)
When to use inline function and when not to use it?(什么時候使用內聯函數,什么時候不使用?)
Examples of good gotos in C or C++(C 或 C++ 中好的 goto 示例)
Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);(ios_base::sync_with_stdio(false) 的意義;cin.tie(NULL);)
Is TCHAR still relevant?(TCHAR 仍然相關嗎?)
主站蜘蛛池模板: 中文字幕日韩视频 | 天天摸天天干 | a级片免费观看 | 日本免费一级片 | 久久性色| 亚洲国产毛片 | 波多野结衣一区二区三区在线观看 | 中文字幕在线看片 | 天堂一区二区三区 | 天天插天天射 | 国内精品国产成人国产三级 | 国产精品一线 | 婷婷色在线 | 成人精品在线观看 | 99精品免费视频 | 欧美啪啪网站 | 美女久久久 | 黄色片在线观看视频 | 美女一级片 | 欧美午夜在线观看 | 日韩成人免费 | 夜间福利视频 | www.五月婷婷| 九九热精品视频 | 久久国产一区 | 日韩精品在线看 | 久久艹精品 | 国产伦精品一区二区免费 | 免费毛片在线 | 亚洲精品一区二三区不卡 | 91性视频 | 国产精品美女毛片真酒店 | 国产精品综合 | 国产天堂在线观看 | 三级在线观看视频 | 日韩欧美高清 | 日韩亚洲天堂 | 精品久久一区二区 | 亚洲日本视频 | 欧美一级片免费观看 | 精品国产欧美一区二区三区成人 |