Struct Padding
Given the struct from the memory alignment question, what is sizeof(Data) on a typical 64-bit system and why?
struct Data {
char a; // 1 byte
int b; // 4 bytes
char c; // 1 byte
};
Sign in to answer questions and track your progress
Sign In