I'm reading Bjarne's C++ book, and he mentions that there exists embedded processors that are only word addressable where a char is 4 bytes. Then, he later mentions that sizeof() returns the number of multiples of chars the given type is, where sizeof(char) is defined to be 1. I've always thought that sizeof() returns the number of bytes for a given type (and a quick google seach seems to support this), so is this the case or is it the case that sizeof() returns the number of multiples of chars? As a more concrete example, lets take one of those embeddeed processors where a char is 4 bytes and an int is 4 bytes. Will sizeof(int) return 1 or 4?
I completely realize that this questions is probably completely useless, but I was just curious, so thanks for the help!
)