What value will the function return?
MsgBox DoCalc(4,10)
Function DoCalc(a As Integer, b As Integer)
DoCalc = b – a
End Function
6
-6
4/10
14
Expert Answer
DoCalc function is called with input values 4 and 10.
a = 4
b = 10
DoCalc = b – a = 10 – 4 = 6
Hence, the function will return 6.