Re: How could a char be signed?
- From: Mark Bluemel <mark_bluemel@xxxxxxxxx>
- Date: Thu, 19 Aug 2010 15:23:01 +0100
John Kelly wrote:
On Thu, 19 Aug 2010 10:50:23 +0100, Mark Bluemel
<mark_bluemel@xxxxxxxxx> wrote:
Ann On wrote:I do not understand how a char could be a signed char.Here's your misconception. You think that the char data type in C is about characters from a specific character set.
All the ASCII char's are positive numbers.
The char data type in C is an small integer type and integer types may be signed or unsigned.
That makes it sound like each character requires two bytes of memory.
Given that I later went on to mention that the name "byte" may have been better, that would seem a strange way to read what I wrote.
Some readers may think "short" where you wrote "small."
Readers capable of that level of misunderstanding would do well to avoid trying to program.
Choice of words can be misleading. It's no surprise C was designed by
Englishmen.
Really? I'm sure Dennis Ritchie would be interested to learn that.
.
- Follow-Ups:
- Re: How could a char be signed?
- From: John Kelly
- Re: How could a char be signed?
- References:
- How could a char be signed?
- From: Ann On
- Re: How could a char be signed?
- From: Mark Bluemel
- Re: How could a char be signed?
- From: John Kelly
- How could a char be signed?
- Prev by Date: Re: How could a char be signed?
- Next by Date: Re: make a program that count lines in a text
- Previous by thread: Re: How could a char be signed?
- Next by thread: Re: How could a char be signed?
- Index(es):
Relevant Pages
|