Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started