9
Scope, Lifetime, and More on Functions
KNOWLEDGE GOALS
To know what a global reference is.
To understand and be able to avoid unwanted side effects.
To know when to use a value-returning function.
SKILL GOALS
To be able to:
Determine which variables in a program are local.
Determine which variables are accessible in a given block.
Get Programming and Problem Solving with C++: Comprehensive, 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.