Unsigned char is 1 byte long..
it's range is from -128 to 127
Most significant bit is sign bit to indicate whether the char has positive or negative value and the rest 7 bits are meant for storing the actual value of char... so the max +ve value of char can be 127 as expected but in the -ve side how can it be -128 ???
himanjim 0 Junior Poster in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Infarction 503 Posting Virtuoso
himanjim 0 Junior Poster in Training
Infarction 503 Posting Virtuoso
Dave Sinkula 2,398 long time no c Team Colleague
Infarction 503 Posting Virtuoso
Dave Sinkula 2,398 long time no c Team Colleague
himanjim 0 Junior Poster in Training
Narue 5,707 Bad Cop Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Infarction 503 Posting Virtuoso
Narue 5,707 Bad Cop Team Colleague
goutham_see 1 Newbie Poster
Dave Sinkula 2,398 long time no c Team Colleague
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.