-
Want to know something New in C
New Alphabates in C or New ASCII Codes
Can any one tell me that how can I add new ASCI code with its binary and hexadecimal and decimal no in C?
I mean that we have got 256 ASCI Numbers but if i want to increase that than what should I do for that.
If any one know that way or procedure to do that please let me know about that.
-
you can't increase it. For two reasons:
1. The C standards say there are only 256
2. The maximum value you can put in an unsigned char is 255. (range is 0 to 255). If you attempt to store 256 in it the result is undefined, but probably will be 0.
You can, however, use UNICODE character set which does not use unsigned char, but used wchar_t data type. But normal C string handling functions such as strcpy() will not work on them.
Popular pages
Recent additions