#What goes where?
16-Feb-88 14:32:25
Sb: #109440-#What goes where?
Fm: Don Curtis/SYSOP 76703,4321
To: Nick Sullivan/Transactor 76703,4353
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
Nick,
I'm at work now and quoting from the new reference:
'The type signed was added to the proposed ANSI standard to allow the
type signed char to be specified. Previously, some compilers defaulted to
signed characters and others defaulted to unsigned. The modifier signed
helps standardize the use of type char.'
The ANSI list of data types shows the following:
char ASCII characters
signed char -128 to 127
unsigned char 0 to 255
The text accompaning the list of data types states: 'Values of type
char are, in theory, restricted to the defined ASCII characters. Values
outside that range may be handled differently in different C
implementations.'
Taking those two together, I read that ANSI is encouraging the
default of unsigned char, but that it still may vary from compiler to
compiler.
Don