struct test
{
char member1;
char member2;
};
int main(void)
{
struct test structure[] = {'h', 'i'};
static void* p = &structure;
printf("%i", *((int*)p));
return 0;
}
We all know that structure
should point to the address of the first element in the struct. Why by dereferencing it like that, it returns the address itself instead?