Advertisement
anhkiet2507

ASCII

May 29th, 2021
1,868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. Dec = Hệ đếm cơ số 10(Decimal Value)
  2. Char = Ký tự(Character)
  3.  
  4. Ví dụ:
  5. Ký tự '5' có giá trị int là 53
  6. Nếu ta viết '5'-'0' thì tương đương 53-48, kết quả là kiểu int có giá trị 5
  7. Nếu ta viết char c = 'B'+32; khi đó giá trị biến c là ký tự 'b'
  8.  
  9. Các ký tự có Dec từ 0 - 31 không thể in ra màn hình.
  10.  
  11. Dec Char Dec Char Dec Char Dec Char
  12. --------- --------- --------- ----------
  13. 0 NUL (null) 32 SPACE 64 @ 96 `
  14. 1 SOH (start of heading) 33 ! 65 A 97 a
  15. 2 STX (start of text) 34 " 66 B 98 b
  16. 3 ETX (end of text) 35 # 67 C 99 c
  17. 4 EOT (end of transmission) 36 $ 68 D 100 d
  18. 5 ENQ (enquiry) 37 % 69 E 101 e
  19. 6 ACK (acknowledge) 38 & 70 F 102 f
  20. 7 BEL (bell) 39 ' 71 G 103 g
  21. 8 BS (backspace) 40 ( 72 H 104 h
  22. 9 TAB (horizontal tab) 41 ) 73 I 105 i
  23. 10 LF (NL line feed, new line) 42 * 74 J 106 j
  24. 11 VT (vertical tab) 43 + 75 K 107 k
  25. 12 FF (NP form feed, new page) 44 , 76 L 108 l
  26. 13 CR (carriage return) 45 - 77 M 109 m
  27. 14 SO (shift out) 46 . 78 N 110 n
  28. 15 SI (shift in) 47 / 79 O 111 o
  29. 16 DLE (data link escape) 48 0 80 P 112 p
  30. 17 DC1 (device control 1) 49 1 81 Q 113 q
  31. 18 DC2 (device control 2) 50 2 82 R 114 r
  32. 19 DC3 (device control 3) 51 3 83 S 115 s
  33. 20 DC4 (device control 4) 52 4 84 T 116 t
  34. 21 NAK (negative acknowledge) 53 5 85 U 117 u
  35. 22 SYN (synchronous idle) 54 6 86 V 118 v
  36. 23 ETB (end of trans. block) 55 7 87 W 119 w
  37. 24 CAN (cancel) 56 8 88 X 120 x
  38. 25 EM (end of medium) 57 9 89 Y 121 y
  39. 26 SUB (substitute) 58 : 90 Z 122 z
  40. 27 ESC (escape) 59 ; 91 [ 123 {
  41. 28 FS (file separator) 60 < 92 \ 124 |
  42. 29 GS (group separator) 61 = 93 ] 125 }
  43. 30 RS (record separator) 62 > 94 ^ 126 ~
  44. 31 US (unit separator) 63 ? 95 _ 127 DEL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement