union MyStruct
{
int i;
int j;
char a;
};
int main()
{
union MyStruct *p=0;
int size = ((char*)(p+1))-((char*)p);
printf("\nSIZE : [%d]\n", size);
char *a;
printf("Size of int is %d\n",(char*)(a+1)-(char*)a);
return 0;
}
//intresting stuff
#include
int main(void)
{
printf("%c","abc"[1]);
return 0;
}
No comments:
Post a Comment