Thursday 25 June 2020

34- Web Designing Question - 14




















Here we pass the paramenter as Pass By Reference so the value of number changed by the Sub Procedure DoubleAndSquare also change in the caller procedure btnDisplay_Click()

 

the value of number assigned to myVar variable in after calling

So

myVar = 3 + 3

myVar = 6

 

Then

myVar = 6*6

myVar = 36

 

So now number became 36

 

now function CStr() convert the number into string so in txtBox it will store 36

 

So the final Answer is 36


No comments:

Post a Comment