Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualNypyren

Posted 04 July 2012 - 07:37 PM

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.

#1Nypyren

Posted 04 July 2012 - 07:37 PM

That is incorrect.  The char is still only 1 byte.  There are 3 bytes of padding due to struct alignment.

Put 4 chars in a struct all by themselves and your struct will only be 4 bytes in size.

PARTNERS