Which of the following is true? a. A static variable has the same lifetime as a procedure-level

Question:

Which of the following is true?
a. A static variable has the same lifetime as a procedure-level variable but the same scope as a class-level variable.
b. A static variable has the same scope as a procedure-level variable but the same lifetime as a class-level variable.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: