まじめにやると
union{
char A[8];
struct{
char A[4];
char B[4];
}S;
}U;