Friday, July 9, 2021

sizeof operator implementation

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


This can not be implemented by function. For any function its argument
type needs to be always fixed.

No comments:

Post a Comment