9

Scope, Lifetime, and More on Functions

KNOWLEDGE GOALS

Image   To know what a global reference is.

Image   To understand and be able to avoid unwanted side effects.

Image   To know when to use a value-returning function.

SKILL GOALS

To be able to:

Image   Determine which variables in a program are local.

   Determine which variables are accessible in a given block. ...

Get Programming and Problem Solving with C++: Brief, 6th Edition 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.