C QUESTIONS AND CODES
C Questions and Corresponding codes
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
counter
No comments:
Post a Comment