Declarations and Definitions

When the programmer designs the logical flow of computations, the results of one step of computation are often used as data for another step. Hence, these results should be stored in memory and retrieved when needed again. In our first C++ program, one is added to the value denoted as y, and the result is used as the second argument in a call to function pow (it raises its first argument to the power of its second argument). To be able to store the value in memory and quickly access it for further use, the value should have a physical address in the computer memory. Since we do not want to use physical addresses in our source code, the value should have a symbolic name that the programmer will use in the program. ...

Get Core C++ A Software Engineering Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.