Question : unsigned char ?

Hi ,

I am using unsigned char to represents character from 0 to 255...but if I am not going to use to ascii characters, which data type should I use ? Tks.

Answer : unsigned char ?

ASCII characters fit in 7 bits, so a data type that holds 8 bits like char would be efficient.
ISO8859 characters fit in 8 bits so a char would also hold them.
for Unicode characters you may want wchar
you say  not going to use to ascii characters, but you do not say what you are going to use, so I'm not sure how to answer more specifically
Random Solutions  
 
programming4us programming4us