Home >Backend Development >C#.Net Tutorial >What does '\n' mean in C language

What does '\n' mean in C language

王林
王林Original
2020-07-13 10:04:55125419browse

In C language, "\n" means carriage return and line feed, which moves the current position to the beginning of the next line. Similarly, "\t" represents a horizontal tab character, moving the current position to the next tab position; "\r" represents a carriage return, moving the current position to the beginning of the line.

What does '\n' mean in C language

In C language, \n means carriage return and line feed, moving the current position to the beginning of the next line.

(Recommended learning: C Language Tutorial)

Related introduction:

\t \r \n are all escape characters, and spaces are simple Spaces, you can enter spaces

\t when inputting, which means: horizontal tab character. Move the current position to the next tab position.

\r means: Enter. Moves the current position to the beginning of the line.

\f means: page change. Move the current position to the beginning of the next page.

The above is the detailed content of What does '\n' mean in C language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn