C language --- character, --- character

Source: Internet
Author: User

C language --- character, --- character

1. triplicate character (tri-letter word): It is a combination of three characters to represent other characters. The triplicate character can be used when no character exists.

?? ([

??) ]

??! |

?? <{

?> }

?? '^

?? = #

?? /\

?? -~

2. escape characters

Visible characters:

\? ---- Used for multiple? To prevent being interpreted as a trigger.

\ "---- Double quotation marks inside the string

\ '---- Single quotation marks of character constants'

\ ---- Indicates a backslash to prevent escape characters

Invisible characters:

\ A ---- warning character to generate visible or audible signals

\ B (backspace) ---- return key

\ F ---- paper feed character (Form feed)

\ N (new line) ---- line feed

\ R (return) ----- press enter (do not wrap)

\ T (tab) ---- horizontal tab

\ V ---- vertical Tab

\ Ddd ---- indicates 1 ~ Three octal characters

\ Xddd ---- indicates 1 ~ 3 characters represented by hexadecimal numbers

Note:

1. in linux, the third element is skipped by default in gcc 4.4.7.

2. in linux, \ n is equivalent to \ r \ n in win.

3. \ ddd \ xddd

For example, \ x101 hexadecimal 101 represents 65 in decimal format, and \ x101 represents the letter.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.