H
Herbert Rosenau
On 3/18/2010 7:40 AM, dspfun wrote: (...)
What are the pros and cons of using char instead of int when values
will not exceed 255?
If you need [0..255] you should use unsigned char, not plain
char. (If you need [-127..127] make it signed char.)
Are there any 1's complement machines out there which have C
implementations that are actively used?
No, of course not. And no signed-magnitude machines,
either. What's more, there *never* will be, no, not ever,
not while your children's children's children still use C.
I'm 1000% sure that you are unable to enumerate each and every CPU
ever builded, having at least one valid C compiler and written lots of
programs for it. i86 is widely used, yes - but at least it is only a
rare CPU with an ill design.
--
Tschau/Bye
Herbert
Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2R Deutsch ist da!