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:
“Ten p>
Eighty-sixty
Into the word
Construction symbol
00000nul
01011soh
02022stx
03033etx
04044eot
05055enq
06066ack
07077bel
10088bs
11099ht
120a10nl
130b11vt
140c12ff
150d13er
160e14so
170f15si
201016dle
211117dc1
221218dc2
231319dc3
241420dc4
251521nak
261622syn
271723etb
301824can
311925em
321a26sub
331b27esc
341c28fs
351d29gs
361e30re
371f31us
402032sp
412133!
422234″
432335#
442436$
452537%
462638&
472739`
< p>502840(
512941)
522a42*
532b43+
542c44,
552d45-
562e46.
572f47/
6030480
6131491
6232502
6333513
6434524
6535535
6636546
6737557
7038568
7139579
723a58:
733b59;
743c60<
753d61=
763e62>
773f63?
1004064@
1014165A
1024266B p>
1034367C
1044468D
1054569E
1064670F
1074771G
1104872H
1114973I
1124a74J
1134b75K
1144c76L
1154d77M
1164e78N
1174f79O
1205080P
1215181Q
1225282R
1235383S
1245484T
1255585U
1265686V
1275787W
1305888X
1315989Y
1325a90Z
1335b91[
1345c92\
1355d93]
1365e94^
1375f95_
1406096′
1416197a
1426298b
1436399c
14464100d<
14565101e
14666102f
14767103g
15068104h
15169105i
1526a106j
1536b107k
1546c108l
1556d109m
1566e110n
1576f111o
16070112p
16171113q
16272114r
16373115s
16474116t
< p>16575117u
16676118v
16777119w
17078120x
17179121y
1727a122z
1737b123{
1747c124|
1757d125}
1767e126~
1777f127del
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:
#include<stdio.h>
intmain()
{ chara=’5′;<
printf(“ASCII code for character 5 is %d\n”,a);
return0;
}
Extension:
The following are the decimal numbers for the ASCII codes of numbers 0-9.
What is the ASCII value of character 3? In binary
Hexadecimal: 0x33
Binary: 00110011
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