Tuesday, January 26, 2010

Size of variable - #define

If you create variable using #define , size of that variable is 2 bytes.

#include< stdio.h >
#define a 1
main()
{
printf("%d",sizeof(a));
return 0;
}

0 comments:

Post a Comment