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
X
sizeof
The possibility of padding prevent all hopes without the knowledge of the rules used for introducing it. And those are implementation dependent.