0 votes
in C Plus Plus by
How to write your own sizeof operator?

1 Answer

0 votes
by
#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)
...