Home » Blog » How to write your own sizeof operator?

How to write your own sizeof operator?

#define my_sizeof(type) (char *)(&type+1)-(char*)(&type)

 

Leave a Reply

Your email address will not be published.