sizeof對於a bit-field, a void expression, or a function designator無意義
看下C標準吧
C89 specified that sizeof’s operand can be any value except a bit-field, a void expression, or a function designator.
---所以對函數本身的sizeof應該是無意義的
...
these expressions determine the size of the type used for:
sizeof(F(x)) // ... F’s return value
----sizeof(F(x))可以得到函數返回值的大小
C89 specified that sizeof’s operand can be any value except a bit-field, a void expression, or a function designator.
---所以對函數本身的sizeof應該是無意義的
...
these expressions determine the size of the type used for:
sizeof(F(x)) // ... F’s return value
----sizeof(F(x))可以得到函數返回值的大小
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
ASP正則表達式收集
haichanglin
2020-07-08 10:27:05
前端面試題 - 說一下原型和原型鏈?
原創
2024-04-24 23:51:10
Oracle數據庫中的索引類型分類
原創
2024-04-23 21:54:53
從用戶中來,到用戶中去:IPD集成產品開發之FFAB模型,讓你的產品供不應求!
原創
2024-04-13 00:50:45
數據結構筆記淺記(三)空間複雜度
原創
2024-03-23 00:43:15
uniapp rich-text處理富文本里的圖片寬度自適應
原創
2024-03-09 02:59:11
省市三級聯動的DropDownList+Ajax的三種框架(aspnet/Jquery/ExtJs)示例
zrz009
2020-07-08 11:14:16
JQuery 之Ajax 示例
zrz009
2020-07-08 11:14:16
cvCloneImage()和cvCopy()的區別
lcy9819
2020-07-08 11:22:40
用MASM實現讀UCS-2文件
Just_Fancy
2020-07-08 11:15:30
C語言的一些細節總結
redarm
2020-07-08 10:59:37
養生需知:世上最健康的作息時間
wsimei
2020-07-08 10:29:28
太陽的女人18
id="I7" marginwidth="0" marginheight="0" src="http://www.bookeba.cn/securi
new66
2020-07-08 10:21:11