Storage Class Flashcards
1
Q
auto
A
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
Q
extern
A
- Storage class of names known to the linker
- Gives additional functions access to globals
3
Q
Global Variable
A
A variable that may be accessed by many functions in a program
4
Q
const
A
Used in declaring a global variable
5
Q
typedef
A
A notational convienence, doesn’t allocate storage space.
6
Q
static
A
Storage class of variables allocated only once, prior to program execution, remains allocated until the entire program terminates.
7
Q
register
A
- 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