c language\nWhat does it mean?

烟雨青岚
Release: 2020-06-24 16:28:29
Original
79805 people have browsed it

"\n" in C language means line break. "\n" is an escape character. When the system recognizes the escape character, it will automatically wrap the line. In different languages, the code of the line break character is also different. In front-end web development, it is "
" and in C, it is " endl".

c language\nWhat does it mean?

c language\nWhat does it mean?

printf ("\n") means outputting a newline character. "\n" is an escape character. When the system recognizes the escape character, it will automatically wrap the line. The window will not display \n and will directly change to the next line.

In different languages, the codes for line breaks are also different. In front-end web development, it is
, in C language it is "\n", in C language it is "endl", etc.

c language\nWhat does it mean?

Extended information:

The main features of C language are as follows:

1. Concise language

C language contains only 9 types of control statements and only 32 keywords. Program writing requirements are not strict and mostly use lowercase letters. Many unnecessary parts have been streamlined.

2. Structured control statements

C language is a structured language, and the control statements provided have structured features, such as for statements, if ⋯else statement and switch statement, etc. It can be used to implement logical control of functions and facilitate process-oriented programming.

3. Rich data types

C language contains a wide range of data types, including not only traditional character types, integers, floating point types, array types, etc. Data types also have data types that other programming languages ​​do not have. Among them, pointer type data is the most flexible to use, and various data structures can be calculated through programming.

Recommended tutorial: "C Language Tutorial"

The above is the detailed content of c language\nWhat does it mean?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template