Question: Question 1 1 What is incorrect about the following function? Function sum ( ByVal intX As Integer, ByVal inty As Integer ) As Integer Din
Question
What is incorrect about the following function?
Function sumByVal intX As Integer, ByVal inty As Integer As Integer
Din intans As Integer
intAns int
End Function
intAns should not be declared inside the Function
the function does not return a value
the as Integer at the end of the Function heading should be eliminated
parameters intA and intB should be declared as ByRef
Moving to another question will save this response.
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
