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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

extern

A
  • Storage class of names known to the linker
  • Gives additional functions access to globals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Global Variable

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

const

A

Used in declaring a global variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

typedef

A

A notational convienence, doesn’t allocate storage space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

static

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly