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
Well, I am an amateur..but I tried out this problem and I got the right answer without using sizeof. Hope this helps.. I am trying to find the size of an integer.
int *a,*s, v=10; a=&v; s=a; a++; int intsize=(int)a-(int)s; printf("%d",intsize);