In C there are 3 char types. char signed char unsigned char so
maybe char isn't signed?
Ok, so that leaves me VERY confused..
Correct me if I'm wrong, but signed variables use the high bit to indicate
negative by setting it to a 1, correct?
So, I can only see two options, either you
On Fri, Mar 27, 2009 at 04:06:21PM -0400, David VanHorn wrote:
In C there are 3 char types. char signed char unsigned char so
maybe char isn't signed?
Ok, so that leaves me VERY confused..
As you should be. Plain old char *is* either signed or unsigned
depending on your choice of
Sorry David for the second reply to you. I intended to reply to everyone.
David VanHorn wrote:
In C there are 3 char types. char signed char unsigned char so
maybe char isn't signed?
Ok, so that leaves me VERY confused..
Correct me if I'm wrong, but signed variables use the high bit
David VanHorn wrote:
Ok, so that leaves me VERY confused.
Maybe it would help to think about logic levels in simulation. The three basic
levels are low, high and unknown. The three variations of the char type
are similar, signed, unsigned and unspecified. I think that the reason the
On Fri, Mar 27, 2009 at 04:21:15PM -0400, David VanHorn wrote:
As you should be. Plain old char *is* either signed or unsigned
depending on your choice of compiler. And in effort to build code
that runs as expected better compilers have a compile time switch to
control code generation
On Fri, Mar 27, 2009 at 4:31 PM, Graham Davies ecros...@ecrostech.comwrote:
David VanHorn wrote:
Ok, so that leaves me VERY confused.
Maybe it would help to think about logic levels in simulation. The three
basic levels are low, high and unknown. The three variations of the
char type are
David VanHorn wrote:
... the unspecified variant looks like a disaster waiting to happen
I don't disagree.
And: ... using the portable types, there does not appear to be an unspecified
char ...
Maybe that's why they're portable. I'm not sure that's the right name for
them, though. I