adplus-dvertising
frame-decoration

Question

What happens when a procedure containing the following statements ends?
Dim decSales As Decimal=12.2
Static decTotal As Decimal=13.5

a.

Both values lose their values

b.

Dim variable loses its value

c.

Static variable loses its value

d.

Both variables retain their values

Answer: (b).Dim variable loses its value

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What happens when a procedure containing the following statements ends?