size of a datatype without using sizeof

后端 未结 21 2008
慢半拍i
慢半拍i 2020-12-01 02:34

I have a data type, say X, and I want to know its size without declaring a variable or pointer of that type and of course without using sizeof oper

21条回答
  •  囚心锁ツ
    2020-12-01 02:42

    The possibility of padding prevent all hopes without the knowledge of the rules used for introducing it. And those are implementation dependent.

提交回复
热议问题