I have few structures, & I get different values for each structure's sizeof() operator in a 32-bit processor
why it doesn't give 4 bytes for test2 & 8 bytes for test3?Code:struct test1{ int i; int j; char c; } sizeof(struct test1) = 12 struct test2{ char c; } sizeof(struct test2) = 1 struct test3{ char c[5]; } sizeof(struct test3) = 5
thanks
onebrother