InterviewSolution
| 1. |
What Is The Difference Between Function And Procedure? |
|
Answer» A function, which is called differently from a subroutine, returns a value to the code that calls it, while a PROCEDURE (subroutine) does not. Functions must be set EQUAL to a RETURN value: Variable_1 = My_Function(A, B, C) A subroutine, on the other hand, isn't set to a variable. It can be called like My_Subroutine A, B, C A function, which is called differently from a subroutine, returns a value to the code that calls it, while a procedure (subroutine) does not. Functions must be set equal to a return value: Variable_1 = My_Function(A, B, C) A subroutine, on the other hand, isn't set to a variable. It can be called like My_Subroutine A, B, C |
|