I&C SCI 31 Chapter Notes - Chapter 4: Scientific Notation, Printf Format String, Flash Memory

60 views10 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents