Dec 21, 2008

sizeof the struct

struct {
char c;
char* p;
}
what is the size of the struct in 32/64 bit platform?

8+32 bits
8+64 bits
If we consider memory alignment, that should be 32+32 and 32+64

No comments:

Post a Comment