Answer the question
In order to leave comments, you need to log in
How to treat strings correctly?
1. How to properly consider line breaks?
// вариант 1
line1\n
line2\n
line3
// вариант 2
line1
\nline2
\nline3
// вариант 1
line1\n
line3
// вариант 2
line1
\nline3
Answer the question
In order to leave comments, you need to log in
If the line break is visualized by its own escape sequence, then it is correct to consider the text as follows:
Line break is carried out after the line break character, so it remains at the end of the line.
The deletion of a line occurs together with the deletion of the hyphen character. If the transfer remains, then this is a line cleanup.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question