What does '\n' mean in C language

王林
Release: 2020-07-13 10:04:55
Original
125025 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!