When these appear in strings, they will be replaced by a certain character, for example "String\n" will contain "String" with an end-of-line character at the end, which will make the display end the line.
These work in C and C++.