O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

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 12. Storage Classes, Linkage, and Memory Management

You will learn about the following in this chapter:

  • Keywords:

    auto, extern, static

    register, const, volatile

    restricted

  • Functions:

    rand(), srand(), time(), malloc(), calloc(), free()

  • How C allows you to determine the scope of a variable (how widely known it is) and the lifetime of a variable (how long it remains in existence)

  • Designing more complex programs

One of C's strengths is that it enables you to control a program's fine points. C's memory management system exemplifies that control by letting you determine which functions know which variables and for how long a variable persists in a program. Using memory storage is one more element of program design.

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