how big is a char datatype one a 32bit and 64bit computer?

Mar 26, 2011 at 7:36am
as above for a
1) 32bit
2) 64bit

computer
Last edited on Mar 26, 2011 at 7:36am
Mar 26, 2011 at 7:37am
It would be the same (1 byte).
Mar 26, 2011 at 8:11am
Most systems use the char = 8 bits = 1 byte.

The difference between 32 and 64 bit OS's has to do with the memory addresses and size of data as it is processed (bus, etc). The amount of memory used by data is the same.
Last edited on Mar 26, 2011 at 8:13am
Mar 26, 2011 at 8:56am
Architecture doesn;t affect char data type.

Gorav
http://www.kgsepg.com
Mar 26, 2011 at 7:23pm
It's always 1 byte, but 1 byte isn't always 8 bits in C++.
Topic archived. No new replies allowed.