2-Storage Classes Flashcards

1
Q

What does a storage class define regarding variables?

A

Life-time
Visibility
Scope

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

Auto

A

The default storage class for all local variables

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

Register

A

to define local variables that should be stored in a register instead of RAM

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

Static

A

Instructs the compiler to keep a local variable in existence during the life-time of the program

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

extern

A

to give a reference of a global variable that is visible to ALL the program files

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