What happens to a variable declared locally inside a Sub procedure after the procedure terminates?

A. It maintains its value even after the End Sub statement executes.
B. It ceases to exist after the End Sub statement executes.
C. It loses its value temporarily after the End Sub statement executes, but regains that value upon re-entry to the Sub procedure.
D. It is reset to its default value.

Ans: B

0 comments: