久久久久久久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 仍然相關嗎?)
主站蜘蛛池模板: 日韩精品久久久久久 | 免费一级淫片aaa片毛片a级 | 91 在线| 国产精品高潮呻吟 | 午夜国产 | 欧美成人自拍视频 | 亚洲 中文 欧美 日韩 在线观看 | 欧美黄色一区 | 二区在线观看 | 欧美日韩在线综合 | 国产成人免费视频 | 亚洲一区二区av | 日韩欧美网 | 99re视频在线| 国产黄色免费网站 | 久久精品久久久久久 | 国产精品区二区三区日本 | 国产伦一区二区三区四区 | 亚洲伊人久久综合 | 久久99精品国产麻豆婷婷 | 激情综合五月天 | 欧美日高清视频 | 一区二区三区免费在线观看 | 国产精品美女www爽爽爽视频 | 欧美不卡视频一区发布 | 欧美1区2区| 日韩免费高清视频 | 91婷婷韩国欧美一区二区 | 狠狠操狠狠干 | 久草在线 | 国产精品中文字幕一区二区三区 | 久久国产精品一区二区三区 | 91精品国产91久久久久久丝袜 | 亚洲精品68久久久一区 | 亚洲欧美网 | 国产日韩精品视频 | 午夜精品在线 | 高清av在线 | 国产女人精品视频 | 日韩在线欧美 | 国产精品一区二区av |