quote:Original post by Mage2k
Hmmm.... Don''t most compilers these days default to long for ints these days anywayz? A quick check with gcc does, and I''m pretty sure that VC++/NET does also. If you want the smaller representation, specify short. Also, a single char may be padded, but I would think that an array of chars will be packed in together (with maybe some padding at the end) which is how I usually see this done.
unsigned char keys[256;
peace and (trance) out
Mage
Yes, ints are 32-bit. And I did a quick google search and found that almost all compilers do pad. If it is an array, they wouldn''t, because of pointer math (address[offset]), but they would probably pad at the end.