", and in C++, it is "endl".">
"\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?
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.
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!