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

as above for a
1) 32bit
2) 64bit

computer
Last edited on
It would be the same (1 byte).
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
Architecture doesn;t affect char data type.

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