Question: Can sombody help me with this please If we declared a static variable inside a procedure called sum, what would be the sum when we

Can sombody help me with this please

If we declared a static variable inside a procedure called sum, what would be the sum when we run this procedure the third time if var=5 and sum=0; Note: the initial value of var = 5?

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Dim var1 As Integer

Static sum As Integer

Integer.TryParse(TextBox1.Text, var1)

sum = sum + var1

Label1.Text = sum.ToString("n")

End Sub

What is the three-character extension appended to solution files in Visual Basic 2015?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!