Reputation: 1011
Im not "that" new to C but can some one please enlighten me on this one:
printf( "%d %d\n", sizeof( int ), sizeof( unsigned char ) );
print as expected 4 and 1.
typedef struct
{
int a;
unsigned char b;
} test
printf( "%d\n", sizeof( test ) );
print 8... Im really confused!
Upvotes: 0
Views: 232