O'Reilly logo

Programming and Problem Solving with C++: Brief, 6th Edition by Chip Weems, Nell Dale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required