Thursday, June 28, 2012

Output Parameters

Is it possible to have multiple return statements within a function ??? Obviously the answer would be NO !!!. What if you need to get multiple values returned ??? Output Parameters would be the solution.
Using Output Parameters additional data can be returned from a method. The following example demonstrate the use of Output Parameters.


Note: When an Output Parameter is declared in a method, it should be assigned value before leaving the method scope.

2 comments: