C# Programming - Functions and Subroutines - Discussion
Discussion Forum : Functions and Subroutines - General Questions (Q.No. 12)
12.
How many values is a function capable of returning?
Discussion:
4 comments Page 1 of 1.
Nirmal R said:
1 decade ago
Function is capable of returning only one value..it may be int,double,byte or it may be a refernce type(obj)
John said:
1 decade ago
What about the out keyword ?
Tipu said:
1 decade ago
We can return multiple value from C# method if we use.
out keyword during passing parameters.
out keyword during passing parameters.
Anindita said:
8 years ago
I think the answer is E.
We can return multiple values from a function using the following 3 approaches:
Reference parameters.
Output parameters.
Returning an Array.
Returning an object of class/struct type.
Returning a Tuple.
We can return multiple values from a function using the following 3 approaches:
Reference parameters.
Output parameters.
Returning an Array.
Returning an object of class/struct type.
Returning a Tuple.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers