F
Francis Moreau
Hello,
I'm wondering if I can find a (realistic) implementation of C where
the char type size is different from 8 bits ?
The C spec seems to say that a char type must be able to contain any
basic execution character sets and have at least 8 bits.
But I'm not sure if the C claims that the size of char is exactly one
byte. If so that would mean that any implementation must have a byte
whose size is at least 8 bits. This is actually the case for all
architectures I aware of, so why don't the spec simply says that the
char _is_ 8 bits ?
BTW, how many members are there in the basic execution character set ?
Again the C spec says:
In a character constant or string literal, members of the execution
character set shall be
represented by corresponding members of the source character set or
by escape
sequences consisting of the backslash \ followed by one or more
characters.
The last part of this section ("backslash followed by one or more
char) confuses me since it makes the number of member undefined.
Could anybody give me some clues ?
thanks
I'm wondering if I can find a (realistic) implementation of C where
the char type size is different from 8 bits ?
The C spec seems to say that a char type must be able to contain any
basic execution character sets and have at least 8 bits.
But I'm not sure if the C claims that the size of char is exactly one
byte. If so that would mean that any implementation must have a byte
whose size is at least 8 bits. This is actually the case for all
architectures I aware of, so why don't the spec simply says that the
char _is_ 8 bits ?
BTW, how many members are there in the basic execution character set ?
Again the C spec says:
In a character constant or string literal, members of the execution
character set shall be
represented by corresponding members of the source character set or
by escape
sequences consisting of the backslash \ followed by one or more
characters.
The last part of this section ("backslash followed by one or more
char) confuses me since it makes the number of member undefined.
Could anybody give me some clues ?
thanks