i try to get sizeof a self-define struct type, but i confuse about result...
example,
typedef struct st
{
char* name;
struct st* next;
}ST;
sprintf(text, "result is:%d", sizeof(ST));
result is:0x18
why??? it should 0x8,isn't?
Users browsing this forum: No registered users and 1 guest