A function named GetEnding is passed three Integer variables named intBegin, intSales, and intPurchases. The function’s task is to calculate and return the ending inventory. Which of the following function headers is appropriate?a. Private Function GetEnding(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer) As Integerb. Private Function GetEnding(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer) As Integerc. Private Function GetEnding(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intE As Integer) As Integerd. Private Sub Function GetEnding(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer)
A function named GetEnding is passed three Integer variables named intBegin, intSales, and intPurchases. The function’s task is to calculate and return the ending inventory. Which of the following function headers is appropriate?
a. Private Function GetEnding(ByVal intB As Integer,
ByVal intS As Integer, ByVal intP As Integer) As Integer
b. Private Function GetEnding(ByRef intB As Integer,
ByRef intS As Integer, ByRef intP As Integer) As Integer
c. Private Function GetEnding(ByVal intB As Integer,
ByVal intS As Integer, ByVal intP As Integer,
ByRef intE As Integer) As Integer
d. Private Sub Function GetEnding(ByVal intB As Integer,
ByVal intS As Integer, ByVal intP As Integer)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps