What is incorrect about the following function?
```
Function sum(ByVal intX As Integer, ByVal intY As Integer) As Integer
Dim intAns As Integer
intAns = intX + intY
End Function
```
a. intAns should not be declared inside the Function.
b. the as Integer at the end of the Function heading should be eliminated.
c. the function does not return a value
d. parameters intA and intB should be declared as ByRef
c. the function does not return a value
You might also like to view...
A ____ edge is an angled or indented edge, like you would see on a picture frame or on a mirror.
A. transformed B. beveled C. distorted D. converted
Which of the following is an advantage of a sentinel-controlled loop?
A. The number of iterations does not have to be known. B. An extreme or dummy value can be entered. C. The loop is always performed at least one time. D. It could be used with the while form of the loop.