Tags: RAC escape character type one put escape input complete formatting
2018-10-18 22:15:32 C languageOutput various types of data on the screen
\nis a whole, grouped together to represent a newline character. Line break is a control character in ASCII encoding, cannot be entered directly on the keyboard, can only be represented by this special method, known as the escape character, we will be in the "C Language escape character" section of the specific explanation, please let us briefly remember
What does the%ds output? From the output can be found,
%d is replaced by the value of the variable a, without
s changing, as is output. This is because the
%d format control, together with
%ds no meaning,
s is simply followed
%d by a normal character, so it will be output as is.
How to write long text in a string: You can divide long text into several strings in the output statement.
2018-10-18 22:15:32 C language