# C语言字符集

C语言字符集

!“   #  %  &    ()  *  +  ,  –  .   /  :  ;    ? [  \  ]  ^  _  {  |  }  ~
5种空白符：

null字符（用作字符串终止） \0 、警报（alert） \a 、退格（backspace）  \b以及回车（carriage return）\r
C language character set
When the compiler converts source program code, the environment in which it is located is called the translation environment; when the program is executed after compilation, the environment is in the execution environment. For C, the translation environment and the runtime environment are different. Therefore, C language defines two character sets (character set): source code character set and running character set. The source character set is the set of characters used to form the C source code, and the execution character set is the set of characters that can be interpreted by the executing program. In many C implementations, these two character sets are the same. If they are not the same, the compiler will convert the character constants and string literals in the source code into corresponding elements in the running character set.
Both character sets include a basic character set and an extended character. C language usually does not specify extended characters, which is usually determined by the native language. The extended characters plus the basic character set form the extended character set.Both the basic source code character set and the basic run character set include the following character types
:Latin alphabet, decimal Arabic numerals,
The following 29 characters :
! “#% & () * +,-. /:; ? [\] ^ _ {|} ~
5 types of whitespace:Spaces, horizontal tabs, vertical tabs, line breaks, page breaks
The basic running character set defines four non-printable character sets:null characters (used as string termination) \ 0, alert \ a, backspace \ b, and carriage return \ r