Thursday, July 9, 2009

Static Variable Qestion?

Which statement is not true about static variables?





a. A static variable retains its stored value for the lifetime of the application





b. Only variables declared within Sub Procedures may be static.





c.Static variables are destroyed when the Sub Procedure terminates.





d. In order to declare a static variable, replace Dim with Static

Static Variable Qestion?
I think the answer is "b" - all of the other options are true.


No comments:

Post a Comment