InterviewSolution
| 1. |
Difference Between A Sub And A Function. |
|
Answer» A Sub does not return anything WHEREAS a Function returns something. -A Sub PROCEDURE is a method will not return a value Sub ShowName(ByVal myName As String) -A function is a method that will return value(s). Function FindSum(ByVal num1 As Integer, ByVal num2 As Integer) As Integer A Sub does not return anything whereas a Function returns something. -A Sub Procedure is a method will not return a value Sub ShowName(ByVal myName As String) -A function is a method that will return value(s). Function FindSum(ByVal num1 As Integer, ByVal num2 As Integer) As Integer |
|