Escape Sequence
Escape sequences are the characters that are used to represent those characters that cannot by represented normally. They start with ( \ ) backslash and can be used inside string literals.
The below table list some commonly used escape sequences:
Escape Sequence | Name | Description |
---|---|---|
\b | Backspace | It is used to move the cursor backward. |
\n | New Line | It moves the cursor to the start of the next line. |
\r | Carriage Return | It moves the cursor to the start of the current line. |
\t | Horizontal Tab | It inserts some whitespace to the left of the cursor and moves the cursor accordingly. |
\v | Vertical Tab | It is used to insert vertical space. |
\\ | Backlash | Use to insert backslash character. |
\” | Double Quote | It is used to display double quotation marks. |
\0 | NULL | It represents the NLL character. |
C Cheat Sheet
This C Cheat Sheet provides an overview of both basic and advanced concepts of the C language. Whether you’re a beginner or an experienced programmer, this cheat sheet will help you revise and quickly go through the core principles of the C language.
In this Cheat Sheet, we will delve into the basics of the C language, exploring its fundamental concepts that lay the groundwork for programming. We will cover topics such as variables, data types, and operators, providing you with a solid understanding of the building blocks of C programming.
Contact Us