Question: A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning inventory,
A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning
inventory, number sold, and number purchased. The procedure should use these values to calculate the ending inventory, and then store the result in the fourth
variable. Which of the following procedure headers is correct?
a. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer)
b. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByVal intFinal As Integer)
c. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByVal intFinal As Integer)
d. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByRef intFinal As Integer)
Step by Step Solution
3.34 Rating (145 Votes )
There are 3 Steps involved in it
a Private Sub GetEndIn... View full answer
Get step-by-step solutions from verified subject matter experts
