Storage Class Flashcards Preview

CSCI 220 > Storage Class > Flashcards

Flashcards in Storage Class Deck (7):
1

auto

Default storage class of function parameters and local variables; storage is automatically allocated on the stack at the time of a function call and deallocated when the function returns

2

extern

  • Storage class of names known to the linker
  • Gives additional functions access to globals

3

Global Variable

A variable that may be accessed by many functions in a program

4

const

Used in declaring a global variable

5

typedef

A notational convienence, doesn't allocate storage space.

6

static

Storage class of variables allocated only once, prior to program execution, remains allocated until the entire program terminates.

7

register

  • Storage class of automatic variables that the programmer would like to have stored in registers
  • Used for variables that are referenced more often than most