Say you had a struct like this:
typedef struct{
int i;
short s;
unsigned char pad[2];
} test_t;
What would be the point of adding the member pad as doesn't the compiler automatically do things like that? I saw a struct like this looking in some source code and was wondering what it did.