Question: [ Multiple answer ] Identify an error ( or errors ) in the function below Function meanvalue ( ByRef a ( ) As Integer, ByVal
Multiple answer Identify an error or errors in the function below
Function meanvalueByRef a As Integer, ByVal totalnum As Integer As Single
Dim sum As Integer
For To totalnum
sum sum
Next i
meanvalue sum totalnum
End Function
The action of meanvalue sum totalnum should le corrected as meanvaluesumtotalnum
The input argument a is an array and must be transferred using ByVal
Loop index i is not declared
The variable sum is not initialised
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
