Discussion :: Functions and Subroutines - General Questions (Q.No.12)
|Nirmal R said: (Jun 21, 2012)|
|Function is capable of returning only one value..it may be int,double,byte or it may be a refernce type(obj)|
|John said: (Jul 15, 2012)|
|What about the out keyword ?|
|Tipu said: (Mar 31, 2014)|
|We can return multiple value from C# method if we use.
out keyword during passing parameters.
|Anindita said: (Aug 29, 2017)|
|I think the answer is E.
We can return multiple values from a function using the following 3 approaches:
Returning an Array.
Returning an object of class/struct type.
Returning a Tuple.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.