Why is '3' 51?
‘3’ is a character type, and 51 is its numeric value. That is, a character is distinguished by its numeric value from which character it actually represents (a,b,c,d… etc.).
They are uniformly encoded according to the ASCII standard, called ASCII codes. The value of the code for character 3 is 51
ASCⅡ is the most widely used character set and its encoding in computers today, and it is the ASCII code (AmericanStandardCodeforInformationInterchange,AmericanStandardCodeforInformationInterchange), which has been set as an international standard by the International Organization for Standardization (ISO). International Organization for Standardization (ISO) as an international standard, called ISO646 standard.
The 0th to 32nd and 127th (a total of 34) are control characters or communication-specific characters, such as control characters: LF (line feed), CR (Carriage Return), FF (Page Feed), DEL (Delete), BS (Backspace), BEL (Ringing), etc.; communication-specific characters: SOH (Head of the text), EOT (End of the text), ACK (Acknowledgement), etc.
The 33rd to 126th (a total of 34) are control characters or communication-specific characters. ~ 126 (a total of 94) are characters, of which No. 48 to 57 are 0 to 9 ten Arabic numerals; No. 65 to 90 are 26 uppercase English letters, No. 97 to 122 are 26 lowercase English letters, and the rest are some punctuation marks, arithmetic symbols and so on.
ASCII code table:
Into the word
The ASCII value of the character “3” is 51 in decimal, what is the ASCII value of the character “5” in hexadecimal?
The ASCII decimal number for the numeric character 5 is 53.
You can find out by looking up the ASCII code table or writing a small program, for example:
printf(“ASCII code for character 5 is %d\n”,a);
The following are the decimal numbers for the ASCII codes of numbers 0-9.
What is the ASCII value of character 3? In binary
ch='a'+'8'-'3c language question, please explain
Here are all characters, the addition operation is the sum of their ASCII codes, the ASCII code of small a is 97, the ASCII code corresponding to 8 is 56, and the ASCII code corresponding to 3 is 51.
ch=’a ‘+’8’-‘3; After this statement is executed, the corresponding ASCII code is 97+56-51=102, which corresponds to small f. So if you output ch on the screen, it will show :f