Sriniv said:
Hello all,
Do we have unsigned and signed char types? If so, i'd like to know the
differences between the two.
And one more question. Is there any provision in C for using the
Unicode character set?
FWIW, Unicode isn't simply a "character set". It's a whole set of rules and
methodologies. C in it's C99 incarnation is about as close to supporting
Unicode as it was when Unix was rewritten in C 30 years ago.
Some will mention wchar_t and the new wide character functions. But wchar_t
gives you absolutely zilch, no matter whether it's 16-bits or 32-bits or
128-bits. The char type suffices just as well, because no matter the width
of the type you _still_ have combining characters, so the whole notion of
mapping a glyph (the things you see on your screen) to a "character" is long
dead, particularly with regards to Unicode.
So, depending on your disposition C either has no support for Unicode, or it
supports it just fine. IOW, you can use libraries like IBM's ICU to deal w/
Unicode. I doubt C will ever have the type of "support" for Unicode like,
for instance, Java has. Though it's worth mentioning that arguably Java got
it wrong. Which is why C will never have that type of support; there's no
single way to do it, and it's quite application specific.
- Bill