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

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.

Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer b A static variable has the same scope as a procedurelevel variable but the same lif... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!