That is incorrect. The char is still only 1 byte. There are 3 bytes of padding due to struct alignment for the following member (the float).
Put 4 chars in a struct all by themselves and your struct will only be 4 bytes in size.
Posted 04 July 2012 - 07:37 PM
Posted 04 July 2012 - 07:37 PM