当前位置:网站首页>C language: Escape Character
C language: Escape Character
2022-07-25 03:57:00 【Code Knight】
about ASCII code ,0~31( Decimal system ) The characters in the range are control characters , They are invisible , Cannot be displayed on the display , You can't even type... From the keyboard , Can only be expressed in the form of escape characters . however , Use it directly ASCII Code memory is inconvenient , It's not easy to understand , therefore , For common control characters ,C Language also defines abbreviations , The complete list is as follows :
| Escape character | significance | ASCII Code value ( Decimal system ) |
|---|---|---|
| \a | Ring the bell (BEL) | 007 |
| \b | Backspace (BS) , Move the current position to the previous column | 008 |
| \f | Change the page (FF), Move the current position to the beginning of the next page | 012 |
| \n | Line break (LF) , Moves the current position to the beginning of the next line | 010 |
| \r | enter (CR) , Move the current position to the beginning of the line | 013 |
| \t | Horizontal TAB (HT) | 009 |
| \v | Vertical tabulation (VT) | 011 |
| \' | Single quotation marks | 039 |
| \" | Double quotes | 034 |
| \\ | The backslash | 092 |
\n and \t Are the two most commonly used escape characters :
\nUsed to wrap lines , Let the text output from the beginning of the next line , It has been used many times in the previous chapters ;\tUsed for occupying , Generally equivalent to four spaces , perhaps tab Key function .
Single quotation marks 、 Double quotes 、 Backslashes are special characters , Can't express directly :
- Single quotation marks are the beginning and end of character types , To use
\'Express , That is to say'\''; - Double quotes are the beginning and end of a string , To use
\"Express , That is to say"abc\"123"; - The backslash is the beginning of the escape character , To use
\\Express , That is to say'\\', perhaps"abc\\123".
边栏推荐
- Leetcode.745. prefix and suffix search____ Double dictionary tree + double pointer
- High temperature in Britain: two airport runways were burnt out, and several railways were restricted to ensure safety
- Performance test indicators using JMeter
- 场景之在线人数或者粉丝查询实现
- EMQ Yingyun technology was successfully selected into the 2022 "cutting edge 100" list of Chinese entrepreneurs
- word怎么取消退出修订模式
- Use "display: flex; justify content: Center; align items: Center;" Solve the problem that the streaming grid layout cannot be centered
- Flink1.15 source code reading - Flink annotations
- An article takes you quickly to learn flex layout
- Detailed explanation of kubernetes network plug-in - flannel chapter
猜你喜欢
![Advanced numbers | [calculus of multivariate function] chain derivation method, implicit function derivation method, total differential form invariance, multivariate function extremum](/img/a8/c18118bb97118ebc4e1af7a08337b4.png)
Advanced numbers | [calculus of multivariate function] chain derivation method, implicit function derivation method, total differential form invariance, multivariate function extremum

Fifth day of force deduction

Implementing DDD based on ABP -- domain logic and application logic

P100 MSSQL database penetration test of secondary vocational network security skills competition

Installation and tutorial of MATLAB curling simulation game

DNS domain name resolution service

Flink1.15 source code reading - Flink annotations

VMware installation

Machine learning exercise 8 - anomaly detection and recommendation system (collaborative filtering)

使用 “display: flex;justify-content: center;align-items: center; ” 解决流式栅格布局无法居中的问题
随机推荐
Servlet个人实操笔记(一)
场景之在线人数或者粉丝查询实现
"Introduction to interface testing" punch in to learn day04: how to abstract the procedural test script into a test framework?
301. Delete invalid brackets
Imeta | ggclusternet microbial network analysis and visualization nanny level tutorial
Wechat applet authorized login (including obtaining basic information and binding mobile number)
Sales system of infant products based on SSH
The latest Matlab download and installation tutorial (with files)
原创 | ueditor1.4.3-asmx绕过waf
Analysis of browser working principle
Pytorch deep learning practice lesson 8 importing data
Message queue (MQ)
MIM command
Why does the legend of superstar (Jay Chou) not constitute pyramid selling? What is the difference between distribution and pyramid selling?
Operations in shell
MySQL eight shares
Implementation of logistics repair reporting system based on SSM
Detailed explanation of three factory modes
原创|记一次高校漏洞挖掘
[Flink] rich function