Ch. 6.11: Static Local Variables Flashcards

1
Q

What is a static local variable?

A

Static local variables are not destroyed when a function returns. They exist for the lifetime of the program, even though their scope is only the function in which they are defined.

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