Dale - Computer Science Illuminated 265

Dale - Computer Science Illuminated 265 - 238 Chapter 8...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment statement A statement that stores the value of an expres- sion into a variable Named constant A location in memory, referenced by an identi- fier, that contains a data value that cannot be changed 238 Chapter 8 High-Level Programming Languages INTEGER, InTeGeR, and INTeger are considered one identifier in Ada, but four different identifiers in C++ and VB.NET. In C++ and Java, the reserved word 91 is used for integer numbers and 68D71 for single-preci- sion real numbers. Ada uses 8D71 for real numbers, but VB.NET uses u 9 82 and WD–L82 for its two versions of real numbers. Each of these languages allows us to store an initial value in the location assigned to the identifier by placing the assignment operator and a value immediately following the declaration. A value can be stored in a variable with an assignment statement. An assignment statement is an action statement (not a declaration) that says to evaluate the expression on the right-hand side of the symbol and store that value into the place named on
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online