
2.2 Data Types,Variables,and Constants 57
Figure 2.2
Output of Example 2.3
used in line 10, will cause the literal that follows it to be indented one tab stop
when output. Line 11 outputs a sentence with embedded double quotes; the
embedded double quotes are printed with the escape sequence \".
2.2.8 Constants
Sometimes you know the value of a data item, and you know that its value
will not (and should not) change during program execution, nor is it
likely to change from one execution of the program to another. In this
case, it is a good software engineering practice to define that data item as
a constant.
Defining constants uses the same syntax as declaring ...