I&C SCI 31 Chapter Notes - Chapter 4: Scientific Notation, Printf Format String, Flash Memory
Document Summary
Escape sequence \" or \ is used to indicate that a quote is not the string delimiter but is part of the string value. Slash disappears only if print function is called on it. In general, an escape sequence in a string is a sequence of characters starting with a \ that defines a special character and that is interpreted by the function print() Strings defined with single or double quote delimiters must be defined in a single line. If the string is to represent multi-line text, should use triple quotes: "". If we check what that triple quoted string evaluates to we will get the response as each line with \n after it - another example that can only be interpreted by print() function. \n is another escape sequence that stands in for a new line character, starts a new line.