Scope, Lifetime, and More on Functions

images To know what a global reference is.

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

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

To be able to:

images Determine which variables in a program are local.

Determine which variables are accessible in a given block.

Get Programming and Problem Solving with C++, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.