O'Reilly logo

C Programming in One Hour a Day, Sams Teach Yourself, Seventh Edition by Dean Miller, Peter Aitken, Bradley L. Jones

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

Lesson 12. Understanding Variable Scope

In Lesson 5, “Packaging Code in Functions,” you saw that a variable defined within a function is different from a variable defined outside a function. Without knowing it, you were introduced to the concept of variable scope, an important aspect of C programming. In this lesson you learn:

Image About variable scope and why it’s important

Image What external variables are and why you should usually avoid them

Image The ins and ...

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