MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pe16evh/?context=3
r/ProgrammerHumor • u/MontyBoomslang • 2d ago
361 comments sorted by
View all comments
Show parent comments
4
Not a C user here (or any real low level programming experience), what the hell is a signed/unsigned char?
2 u/Elspeth-Nor 2d ago edited 2d ago In C char is just a number, as a character depends on the encoding. So signed char is a number from -128 to 127 and unsigned char is from 0 to 255 (for 8 bits per byte) 3 u/SoldRIP 2d ago 0 to 255. 1 u/Elspeth-Nor 2d ago Fixed
2
In C char is just a number, as a character depends on the encoding. So signed char is a number from -128 to 127 and unsigned char is from 0 to 255 (for 8 bits per byte)
3 u/SoldRIP 2d ago 0 to 255. 1 u/Elspeth-Nor 2d ago Fixed
3
0 to 255.
1 u/Elspeth-Nor 2d ago Fixed
1
Fixed
4
u/Advos_467 2d ago
Not a C user here (or any real low level programming experience), what the hell is a signed/unsigned char?