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
Answer b A static variable has the same scope as a procedurelevel variable but the same lif... View full answer
Get step-by-step solutions from verified subject matter experts
