Monday, March 1, 2010

SIZEOF OPERATOR

CODE FOR USER DEFINED OPERATOR


Solutions :

BY Santosh
#define MYSIZEOP(x) ((char*)(&x+1)-(char*)(&x) )


By Avinash

#define MYSIZEOP(x) ((char*)(&x+1)-(char*)(&x) )
Works only for variables LIMITATION :does not support   For data type alone. like  sizeof(int);


 

No comments:

counter