FIT 100
© Copyright University of
Washington 1999-2000
Expressions as Actual Parameters
v
x = 10
Call squid(x+5)
Private Sub squid(y As
Integer)
Print y
End Sub
The program prints 15
Here,
Visual Basic makes an anonymous (secret) variable to hold the result of adding x and 5