久久久久久久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ⅴ一区二区 | a免费视频 | 久久精品中文字幕 | 成人综合一区 | 亚洲毛片在线观看 | 欧美精品综合在线 | 一级网站 | 日韩中文字幕一区 | 欧美精品一区二区三区在线播放 | 中文字幕在线观看日韩 | 在线观看国产网站 | 色综合一区二区 | 激情五月综合 | 久久精品小视频 | 欧美日韩中文字幕在线 | 天天干天天玩天天操 | 一区二区三区欧美在线观看 | 免费看91| 伊人手机在线视频 | 久久综合一区二区 | 91亚洲精品久久久电影 | 美女国内精品自产拍在线播放 | 91福利网 | 热久久免费视频 | 一道本在线 | 性色av香蕉一区二区 | 黄色片视频网站 | 视频一二三区 | 伊人久久综合 | 91麻豆精品一区二区三区 | 日本不卡一区二区三区在线观看 | 国产精品99久久久久久久久久久久 | 国产成人av免费看 | 亚洲国产69 | 精精国产xxxx视频在线播放7 | 亚洲不卡在线观看 | 国产视频h | 精品日韩一区 | 欧美日本韩国一区二区 |