O'Reilly logo

C Programming for Scientists and Engineers with Applications by Reddy

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

CHAPTER

6

Storage Classes

6.1 Scope of Variables

6.2 Storage Classes in a Single File

6.3 Storage Classes in Multiple Files

6.4 Sample Programs

Chapter Summary

Exercises

Objectives

To understand the existence, nonexistence, accessibility, and suspension of memory allocated for the variables declared global and local to functions.

Memory must be allocated by the computer for all variables declared in a program. Depending on the location of the variable declaration, the storage for the variable may continue to exist or cease to exist during program execution when the variable is no longer used. On the basis of where the variables are declared, the storage allocated for each variable is classified by the compiler as belonging to the auto,

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