There is no such thing as a negative ASCII value. ASCII values are always in the range 0-255. In C++, a char is defined as an unsigned integer of 8-bits in length (wide chars are unsigned integers of 16-bit length). Since they are unsigned, they can never be negative.
C differs from C++ in that a C char is generally represented as a signed integer (typically 32-bits on a 32-bit system). However, when cast as a character, only the low-order byte is used, which effectively ignores the sign in the high-order byte. In other words, the absolute value is used, regardless of the sign. The same applies to wide characters.
The ascii value of zero - is 48.
Ascii value of 5 is 53.
ASCII standardizes characters between 0 and 127.
There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29
70
Ascii value of 5 is 53.
The ascii value of zero - is 48.
The ASCII value for "C" is 67, for "c", 99.
\ is the character for 92 in ASCII.
The ASCII value of the decimal number 12 is represented by the control character known as "Form Feed" (FF). In hexadecimal, this value is 0C. ASCII values are used in computer systems to represent characters and control commands, with 12 being a non-printable character.
deepak
The ASCII value of capital K is 75. For a small k it is 107.
ASCII standardizes characters between 0 and 127.
There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29
Digits have ASCII kód '0'..'9' = 48..57
49
P