O'Reilly logo

Beginning C for Arduino: Learn C Programming for the Arduino, Second Edition by Jack Purdum Ph.D.

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

© Jack Purdum 2015
Jack PurdumBeginning C for Arduino10.1007/978-1-4842-0940-0_7

7. Storage Classes and Scope

Jack Purdum
(1)
Ecosoft, Inc., Cincinnati, Ohio, USA
 
This chapter examines the various ways that data are made available to your programs by examining how and where that data is stored. The concepts presented in this chapter are important because inadvertent access to a program’s data is a frequent source of program bugs. As a general rule, you want to restrict the access to a piece of data as much as possible. That way, inadvertent changes to the data are less likely, resulting in programs that have fewer bugs.

Hiding Your Program Data

What’s the big deal about hiding data in a program? After all, if you hide the data “completely,” nothing ...

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